summaryrefslogtreecommitdiff
path: root/src/node_contextify.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-27 14:22:51 +0100
committerAnna Henningsen <anna@addaleax.net>2019-01-29 20:02:04 +0100
commit2c18d973a58fa782e0b2028221ef886596ee2050 (patch)
treefdbad8188f049aacde83e36db46a498667c61328 /src/node_contextify.h
parent620209628af6c8489300abe5c5b7bee69509ab35 (diff)
downloadandroid-node-v8-2c18d973a58fa782e0b2028221ef886596ee2050.tar.gz
android-node-v8-2c18d973a58fa782e0b2028221ef886596ee2050.tar.bz2
android-node-v8-2c18d973a58fa782e0b2028221ef886596ee2050.zip
src: pass along errors from vm data wrapper creation
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_contextify.h')
-rw-r--r--src/node_contextify.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/node_contextify.h b/src/node_contextify.h
index 5f4f20554a..cb3ca83553 100644
--- a/src/node_contextify.h
+++ b/src/node_contextify.h
@@ -23,9 +23,10 @@ class ContextifyContext {
v8::Local<v8::Object> sandbox_obj,
const ContextOptions& options);
- v8::Local<v8::Value> CreateDataWrapper(Environment* env);
- v8::Local<v8::Context> CreateV8Context(Environment* env,
- v8::Local<v8::Object> sandbox_obj, const ContextOptions& options);
+ v8::MaybeLocal<v8::Object> CreateDataWrapper(Environment* env);
+ v8::MaybeLocal<v8::Context> CreateV8Context(Environment* env,
+ v8::Local<v8::Object> sandbox_obj,
+ const ContextOptions& options);
static void Init(Environment* env, v8::Local<v8::Object> target);
static ContextifyContext* ContextFromContextifiedSandbox(