Closed Bug 1388791 Opened 7 years ago Closed 7 years ago

try{throw}catch(e){console.log(e.stack);} throw doesn't make a stack.

Categories

(Firefox :: Untriaged, defect)

55 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 996060

People

(Reporter: jmichae3, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0 Build ID: 20170803103124 Steps to reproduce: function toUpperCase(s) { if (typeof(s)!="string") { try { throw("oops"); } catch(e) { console.log(e.stack); } } var s2 = ""; var A = 'A'.charCodeAt(0),Z = 'Z'.charCodeAt(0),a = 'a'.charCodeAt(0),z = 'z'.charCodeAt(0),diff = A - a; for (var i = 0; i < s.length; i++) { if (s.charCodeAt(i) >= a && s.charCodeAt(i) <= z) { s2 += String.fromCharCode(s.charCodeAt(i) + diff);//subtract 32 from lower case 96 which makes upper case 64 } else { s2 += s[i]; } } return s2; }//toUpperCase(s) toUpperCase(null); Actual results: does not dump call stack. Expected results: should have dumped call stack.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.