summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2019-10-22 15:28:34 +0200
committerRich Trott <rtrott@gmail.com>2019-10-26 16:22:39 -0700
commitab78d4df34a7698c45fca0b81300fd02fc4add7b (patch)
tree798c500f726abfc0ba8a1eac9f9422b49d4b8e71 /src
parentd29f0eda152b0407bf6bd1e63f548bd39cd2fcd3 (diff)
downloadandroid-node-v8-ab78d4df34a7698c45fca0b81300fd02fc4add7b.tar.gz
android-node-v8-ab78d4df34a7698c45fca0b81300fd02fc4add7b.tar.bz2
android-node-v8-ab78d4df34a7698c45fca0b81300fd02fc4add7b.zip
src: fix crash with SyntheticModule#setExport
Use the new non-deprecated V8 API for that. PR-URL: https://github.com/nodejs/node/pull/30062 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/module_wrap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
index 46210520fc..4c4a1ce863 100644
--- a/src/module_wrap.cc
+++ b/src/module_wrap.cc
@@ -1500,7 +1500,7 @@ void ModuleWrap::SetSyntheticExport(
Local<Value> export_value = args[1];
Local<Module> module = obj->module_.Get(isolate);
- module->SetSyntheticModuleExport(export_name, export_value);
+ USE(module->SetSyntheticModuleExport(isolate, export_name, export_value));
}
void ModuleWrap::Initialize(Local<Object> target,