summaryrefslogtreecommitdiffstats
path: root/js/src/vm
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-11-27 15:47:49 +0000
committerMoonchild <moonchild@palemoon.org>2020-11-27 15:47:49 +0000
commit15914ec5780e7867ab508a48a83311c56950f8a9 (patch)
tree80562c8ff9e25d119fde8725fa89d171ef20bb42 /js/src/vm
parentb863bd2edc94c16498edc3274531f57fbfc30d3f (diff)
downloadUXP-15914ec5780e7867ab508a48a83311c56950f8a9.tar
UXP-15914ec5780e7867ab508a48a83311c56950f8a9.tar.gz
UXP-15914ec5780e7867ab508a48a83311c56950f8a9.tar.lz
UXP-15914ec5780e7867ab508a48a83311c56950f8a9.tar.xz
UXP-15914ec5780e7867ab508a48a83311c56950f8a9.zip
Issue #1691 - Part 1: Provide a way of associating a private value with a script
or module. This is a prerequisite for dynamic import
Diffstat (limited to 'js/src/vm')
-rw-r--r--js/src/vm/SelfHosting.cpp3
1 files changed, 2 insertions, 1 deletions
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;