summaryrefslogtreecommitdiff
path: root/test/message/eval_messages.out
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-03-04 04:55:45 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-03-06 22:12:46 +0800
commit2a9eb316a1e86d8b191aa2cdfd25d45508456573 (patch)
tree743074a353fc55583bbec14e4d56a27ea0911bc8 /test/message/eval_messages.out
parent1a5ec837ca56774f2a9ee54ee9a0f6cbfa01d4bc (diff)
downloadnode-new-2a9eb316a1e86d8b191aa2cdfd25d45508456573.tar.gz
src: move internal loaders out of bootstrap_node.js
- Moves the creation of `process.binding()`, `process._linkedBinding()` `internalBinding()` and `NativeModule` into a separate file `lib/internal/bootstrap_loaders.js`, and documents them there. This file will be compiled and run before `bootstrap_node.js`, which means we now bootstrap the internal module & binding system before actually bootstrapping Node.js. - Rename the special ID that can be used to require `NativeModule` as `internal/bootstrap_loaders` since it is setup there. Also put `internalBinding` in the object exported by `NativeModule.require` instead of putting it inside the `NativeModule.wrapper` - Use the original `getBinding()` to get the source code of native modules instead of getting it from `process.binding('native')` so that users cannot fake native modules by modifying the binding object. - Names the bootstrapping functions so their names show up in the stack trace. PR-URL: https://github.com/nodejs/node/pull/19112 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'test/message/eval_messages.out')
-rw-r--r--test/message/eval_messages.out8
1 files changed, 4 insertions, 4 deletions
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