diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 46210520fcb990..4c4a1ce863849e 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, diff --git a/test/parallel/test-vm-module-synthetic.js b/test/parallel/test-vm-module-synthetic.js index 71df9bd2633daf..83a78f2f3f5ba2 100644 --- a/test/parallel/test-vm-module-synthetic.js +++ b/test/parallel/test-vm-module-synthetic.js @@ -36,8 +36,6 @@ const assert = require('assert'); }); } - // https://bugs.chromium.org/p/v8/issues/detail?id=9828 - /* { const s = new SyntheticModule([], () => {}); await s.link(() => {}); @@ -47,7 +45,6 @@ const assert = require('assert'); name: 'ReferenceError', }); } - */ { const s = new SyntheticModule([], () => {});