File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -749,7 +749,11 @@ if (process.argv[1]) {
749749 process . argv [ 1 ] = path . join ( cwd , process . argv [ 1 ] ) ;
750750 }
751751
752- module . runMain ( ) ;
752+ // REMOVEME: nextTick should not be necessary. This hack to get
753+ // test/simple/test-exception-handler2.js working.
754+ process . nextTick ( function ( ) {
755+ module . runMain ( ) ;
756+ } ) ;
753757} else {
754758 // No arguments, run the repl
755759 var repl = module . requireNative ( 'repl' ) ;
Original file line number Diff line number Diff line change 11before
22
3-
4- *.js:*
5- *cript.runIn*Context(*);
6- *^
3+ node.js:*
4+ throw e;
5+ ^
76ReferenceError: foo is not defined
87 at evalmachine.<anonymous>:*
98 at *test/message/undefined_reference_in_new_context.js:*
109 at Module._compile (node.js:*)
1110 at Module._loadScriptSync (node.js:*)
1211 at Module.loadSync (node.js:*)
1312 at Object.runMain (node.js:*)
13+ at Array.<anonymous> (node.js:*)
14+ at EventEmitter._tickCallback (node.js:*)
1415 at node.js:*
Original file line number Diff line number Diff line change 1+ common = require ( "../common" ) ;
2+ assert = common . assert
3+
14process . on ( 'uncaughtException' , function ( err ) {
25 console . log ( 'Caught exception: ' + err ) ;
36} ) ;
47
8+ var timeoutFired = false ;
59setTimeout ( function ( ) {
610 console . log ( 'This will still run.' ) ;
11+ timeoutFired = true ;
712} , 500 ) ;
813
14+ process . on ( 'exit' , function ( ) {
15+ assert . ok ( timeoutFired ) ;
16+ } ) ;
17+
918// Intentionally cause an exception, but don't catch it.
1019nonexistentFunc ( ) ;
1120console . log ( 'This will not run.' ) ;
21+
You can’t perform that action at this time.
0 commit comments