You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 577e831
Browse filesBrowse the repository at this point in the historyBrowse files
line-=2;// to account for wrapUserscript() adding extra lines
665
+
666
+
log(script,line,col,isException);
667
+
668
+
// if what we're currently executing isn't inside of userscript.js,
669
+
// then PUNT, since we're probably in the first line of console.log()
670
+
// or some other utility function
671
+
if(script!=='userscript.js'){
672
+
execState.prepareStep(debug.StepAction.StepOut);
673
+
}else{
674
+
execState.prepareStep(debug.StepAction.StepIn);
675
+
}
676
+
}
677
+
678
+
646
679
assert(argv._.length<=1);
647
680
varcod;
648
681
if(argv._.length===1){
@@ -667,14 +700,17 @@ try {
667
700
}
668
701
catch(e){
669
702
// for some reason, the node debugger doesn't allow us to keep going
670
-
// after an uncaught exception to, say, execute 'finally' clauses. so
671
-
// let's just issue this warning by hijacking the last entry.
703
+
// after an uncaught exception to, say, execute 'finally' clauses.
672
704
if(curTrace.length>0){
705
+
// do a NOP for now ... it's weird to issue an uncaught_exception since
706
+
// that's usually reserved for syntax errors
707
+
/*
673
708
var lastEntry = curTrace[curTrace.length - 1];
674
-
lastEntry.event='uncaught_exception';
709
+
lastEntry.event = 'exception';
675
710
lastEntry.exception_msg = String(e);
676
711
lastEntry.exception_msg += "\n(Uncaught Exception: execution ended due to current limits of\nthis visualizer. 'finally' blocks and other code might not be run.)";
677
712
lastEntry.line = 0;
713
+
*/
678
714
}else{
679
715
// likely a compile error since nothing executed yet; trace is empty
'function f(n) {\n try {\n if (n == 0) {\n throw new Error(\'DivByZero\');\n }\n else {\n var x = 10 / n;\n console.log("x is " + x);\n f(n-1);\n console.log("survived!");\n }\n }\n finally {\n console.log("Bye from f where n = " + n);\n }\n}',
857
857
null,
858
-
null ] },
859
-
exception_msg: 'Error: DivByZero\n(Uncaught Exception: execution ended due to current limits of\nthis visualizer. \'finally\' blocks and other code might not be run.)' } ] }
Copy file name to clipboardExpand all lines: v4-cokapi/backends/javascript/tests/strict-runtime-error.golden
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,13 @@
18
18
col: 2,
19
19
event: 'step_line',
20
20
heap: {} },
21
-
{ exception_msg: 'ReferenceError: y is not defined\n(Uncaught Exception: execution ended due to current limits of\nthis visualizer. \'finally\' blocks and other code might not be run.)',
21
+
{ exception_msg: 'ReferenceError: y is not defined',
0 commit comments