File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,15 @@ console.log('hello world');
3030console .log (' hello %s' , ' world' );
3131// Prints: hello world, to stdout
3232console .error (new Error (' Whoops, something bad happened' ));
33- // Prints: [Error: Whoops, something bad happened], to stderr
33+ // Prints error message and stack trace to stderr:
34+ // Error: Whoops, something bad happened
35+ // at [eval]:5:15
36+ // at Script.runInThisContext (node:vm:132:18)
37+ // at Object.runInThisContext (node:vm:309:38)
38+ // at node:internal/process/execution:77:19
39+ // at [eval]-wrapper:6:22
40+ // at evalScript (node:internal/process/execution:76:60)
41+ // at node:internal/main/eval_string:23:3
3442
3543const name = ' Will Robinson' ;
3644console .warn (` Danger ${ name} ! Danger!` );
You can’t perform that action at this time.
0 commit comments