From 15914ec5780e7867ab508a48a83311c56950f8a9 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 27 Nov 2020 15:47:49 +0000 Subject: Issue #1691 - Part 1: Provide a way of associating a private value with a script or module. This is a prerequisite for dynamic import --- js/src/vm/SelfHosting.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/src/vm') diff --git a/js/src/vm/SelfHosting.cpp b/js/src/vm/SelfHosting.cpp index dc1dfb9fa..781ddcf16 100644 --- a/js/src/vm/SelfHosting.cpp +++ b/js/src/vm/SelfHosting.cpp @@ -2035,7 +2035,8 @@ intrinsic_HostResolveImportedModule(JSContext* cx, unsigned argc, Value* vp) } RootedObject result(cx); - result = moduleResolveHook(cx, module, specifier); + RootedValue referencingPrivate(cx, JS::GetModulePrivate(module)); + result = moduleResolveHook(cx, referencingPrivate, specifier); if (!result) return false; -- cgit v1.2.3