From ab78d4df34a7698c45fca0b81300fd02fc4add7b Mon Sep 17 00:00:00 2001 From: Michaƫl Zasso Date: Tue, 22 Oct 2019 15:28:34 +0200 Subject: 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 Reviewed-By: Gireesh Punathil Reviewed-By: Gus Caplan Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/module_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 export_value = args[1]; Local module = obj->module_.Get(isolate); - module->SetSyntheticModuleExport(export_name, export_value); + USE(module->SetSyntheticModuleExport(isolate, export_name, export_value)); } void ModuleWrap::Initialize(Local target, -- cgit v1.2.3