Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2019-10-22 16:28:34 +0300
committerRich Trott <rtrott@gmail.com>2019-10-27 02:22:39 +0300
commitab78d4df34a7698c45fca0b81300fd02fc4add7b (patch)
tree798c500f726abfc0ba8a1eac9f9422b49d4b8e71 /src/module_wrap.cc
parentd29f0eda152b0407bf6bd1e63f548bd39cd2fcd3 (diff)
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/module_wrap.cc')
-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 46210520fcb..4c4a1ce8638 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,