diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/message/error_exit.out | 2 | ||||
-rw-r--r-- | test/message/eval_messages.out | 8 | ||||
-rw-r--r-- | test/message/events_unhandled_error_common_trace.out | 2 | ||||
-rw-r--r-- | test/message/events_unhandled_error_nexttick.out | 4 | ||||
-rw-r--r-- | test/message/events_unhandled_error_sameline.out | 4 | ||||
-rw-r--r-- | test/message/nexttick_throw.out | 2 | ||||
-rw-r--r-- | test/parallel/test-loaders-hidden-from-users.js | 25 |
7 files changed, 36 insertions, 11 deletions
diff --git a/test/message/error_exit.out b/test/message/error_exit.out index 1a3c17bf58..eab43959b6 100644 --- a/test/message/error_exit.out +++ b/test/message/error_exit.out @@ -12,4 +12,4 @@ AssertionError [ERR_ASSERTION]: 1 strictEqual 2 at Function.Module._load (module.js:*:*) at Function.Module.runMain (module.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) diff --git a/test/message/eval_messages.out b/test/message/eval_messages.out index 6c725cb1cc..7dbf9e950c 100644 --- a/test/message/eval_messages.out +++ b/test/message/eval_messages.out @@ -10,7 +10,7 @@ SyntaxError: Strict mode code may not include a with statement at Module._compile (module.js:*:*) at evalScript (bootstrap_node.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) 42 42 [eval]:1 @@ -25,7 +25,7 @@ Error: hello at Module._compile (module.js:*:*) at evalScript (bootstrap_node.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) [eval]:1 throw new Error("hello") @@ -39,7 +39,7 @@ Error: hello at Module._compile (module.js:*:*) at evalScript (bootstrap_node.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) 100 [eval]:1 var x = 100; y = x; @@ -53,7 +53,7 @@ ReferenceError: y is not defined at Module._compile (module.js:*:*) at evalScript (bootstrap_node.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) [eval]:1 var ______________________________________________; throw 10 diff --git a/test/message/events_unhandled_error_common_trace.out b/test/message/events_unhandled_error_common_trace.out index d39a95cb77..1535573470 100644 --- a/test/message/events_unhandled_error_common_trace.out +++ b/test/message/events_unhandled_error_common_trace.out @@ -19,4 +19,4 @@ Emitted 'error' event at: at Module._compile (module.js:*:*) [... lines matching original stack trace ...] at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) diff --git a/test/message/events_unhandled_error_nexttick.out b/test/message/events_unhandled_error_nexttick.out index f0591610ff..c578f55f90 100644 --- a/test/message/events_unhandled_error_nexttick.out +++ b/test/message/events_unhandled_error_nexttick.out @@ -11,10 +11,10 @@ Error at Function.Module._load (module.js:*:*) at Function.Module.runMain (module.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) Emitted 'error' event at: at process.nextTick (*events_unhandled_error_nexttick.js:*:*) at process._tickCallback (internal/process/next_tick.js:*:*) at Function.Module.runMain (module.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) diff --git a/test/message/events_unhandled_error_sameline.out b/test/message/events_unhandled_error_sameline.out index 100c294276..d8441c44d4 100644 --- a/test/message/events_unhandled_error_sameline.out +++ b/test/message/events_unhandled_error_sameline.out @@ -11,9 +11,9 @@ Error at Function.Module._load (module.js:*:*) at Function.Module.runMain (module.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) Emitted 'error' event at: at Object.<anonymous> (*events_unhandled_error_sameline.js:*:*) at Module._compile (module.js:*:*) [... lines matching original stack trace ...] - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out index 1c9eca8405..41412b95f6 100644 --- a/test/message/nexttick_throw.out +++ b/test/message/nexttick_throw.out @@ -7,4 +7,4 @@ ReferenceError: undefined_reference_error_maker is not defined at process._tickCallback (internal/process/next_tick.js:*:*) at Function.Module.runMain (module.js:*:*) at startup (bootstrap_node.js:*:*) - at bootstrap_node.js:*:* + at bootstrapNodeJSCore (bootstrap_node.js:*:*) diff --git a/test/parallel/test-loaders-hidden-from-users.js b/test/parallel/test-loaders-hidden-from-users.js new file mode 100644 index 0000000000..b3e6622c8c --- /dev/null +++ b/test/parallel/test-loaders-hidden-from-users.js @@ -0,0 +1,25 @@ +// Flags: --expose-internals + +'use strict'; + +const common = require('../common'); + +common.expectsError( + () => { + require('internal/bootstrap_loaders'); + }, { + code: 'MODULE_NOT_FOUND', + message: 'Cannot find module \'internal/bootstrap_loaders\'' + } +); + +common.expectsError( + () => { + const source = 'module.exports = require("internal/bootstrap_loaders")'; + process.binding('natives').owo = source; + require('owo'); + }, { + code: 'MODULE_NOT_FOUND', + message: 'Cannot find module \'owo\'' + } +); |