diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-12-23 11:42:28 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-12-31 14:19:48 +0800 |
commit | 7163fbf066fe3e84a2203c01a385df1765d53ab6 (patch) | |
tree | 1662f230c7dae483efd9e87dd3f16a2b7a971365 /src/node_process.cc | |
parent | da13c44b0d3e858e6195a56534deb5c22be161c5 (diff) | |
download | android-node-v8-7163fbf066fe3e84a2203c01a385df1765d53ab6.tar.gz android-node-v8-7163fbf066fe3e84a2203c01a385df1765d53ab6.tar.bz2 android-node-v8-7163fbf066fe3e84a2203c01a385df1765d53ab6.zip |
process: move eval and exception bootstrap ito process/execution.js
This patch:
- Moves `tryGetCwd`, `evalScript` and `fatalException` from
`bootstrap/node.js` into `process/execution.js` so that
they do have to be passed into the worker thread
setup function, instead the worker code can require them
when necessary.
- Moves `setUncaughtExceptionCaptureCallback` and
`hasUncaughtExceptionCaptureCallback` along with the two
global state `exceptionHandlerState` and
`shouldAbortOnUncaughtToggle` info `process.execution.js`
as those are only used by the fatalException and these
two accessors as one self-contained unit.
PR-URL: https://github.com/nodejs/node/pull/25199
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_process.cc')
-rw-r--r-- | src/node_process.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/node_process.cc b/src/node_process.cc index 477ac2adc8..867d08916a 100644 --- a/src/node_process.cc +++ b/src/node_process.cc @@ -458,14 +458,6 @@ static void InitializeProcessMethods(Local<Object> target, env->SetMethod(target, "dlopen", binding::DLOpen); env->SetMethod(target, "reallyExit", Exit); env->SetMethodNoSideEffect(target, "uptime", Uptime); - - Local<String> should_abort_on_uncaught_toggle = - FIXED_ONE_BYTE_STRING(env->isolate(), "shouldAbortOnUncaughtToggle"); - CHECK(target - ->Set(env->context(), - should_abort_on_uncaught_toggle, - env->should_abort_on_uncaught_toggle().GetJSArray()) - .FromJust()); } } // namespace node |