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
committerMichaël Zasso <targos@protonmail.com>2019-10-28 09:08:06 +0300
commitd78e3176dd6226d577ba9734d27ba2090ea8880e (patch)
tree943dc17d56eb37323bb0b1cc4d6e08dd1ca6d6c0 /src/module_wrap.cc
parentf3d00c594d9d6e1d8188aca9e7a33b247d48c69f (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,