diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-27 16:21:21 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-29 22:02:01 +0300 |
commit | 95571ac1e9acd09d0b06b2315aabb0cc4e158572 (patch) | |
tree | 67922f8c1b831d7fce0b083a3fa2d5bdd8664f51 /src/node_process.h | |
parent | 4dbff090c3ff2ba43b0fbb06cc65bef5b5d81008 (diff) |
src: pass along errors from process obj instantiation
PR-URL: https://github.com/nodejs/node/pull/25734
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node_process.h')
-rw-r--r-- | src/node_process.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/node_process.h b/src/node_process.h index 865223c1634..452805ada31 100644 --- a/src/node_process.h +++ b/src/node_process.h @@ -7,9 +7,9 @@ namespace node { -v8::Local<v8::Object> CreateEnvVarProxy(v8::Local<v8::Context> context, - v8::Isolate* isolate, - v8::Local<v8::Value> data); +v8::MaybeLocal<v8::Object> CreateEnvVarProxy(v8::Local<v8::Context> context, + v8::Isolate* isolate, + v8::Local<v8::Value> data); // Most of the time, it's best to use `console.error` to write // to the process.stderr stream. However, in some cases, such as @@ -31,7 +31,7 @@ v8::Maybe<bool> ProcessEmitDeprecationWarning(Environment* env, const char* warning, const char* deprecation_code); -v8::Local<v8::Object> CreateProcessObject( +v8::MaybeLocal<v8::Object> CreateProcessObject( Environment* env, const std::vector<std::string>& args, const std::vector<std::string>& exec_args); |