summaryrefslogtreecommitdiffstats
path: root/js/src/vm/EnvironmentObject.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 09:02:03 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-14 09:02:03 +0200
commitad9ee72dcd7981bc47b3844a224d69fadfdfd8ef (patch)
tree7b00445d8b93410c684c0181b18a7e85c1a3cb7b /js/src/vm/EnvironmentObject.cpp
parent8af513a2072d7f808f03a44b32130ff6ffcd7daa (diff)
downloadUXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar.gz
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar.lz
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.tar.xz
UXP-ad9ee72dcd7981bc47b3844a224d69fadfdfd8ef.zip
Bug 1341298 - Relax expected module state when resolving modules and circular module dependencies are present
Diffstat (limited to 'js/src/vm/EnvironmentObject.cpp')
-rw-r--r--js/src/vm/EnvironmentObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/EnvironmentObject.cpp b/js/src/vm/EnvironmentObject.cpp
index 34c39eabf..9b20c2b9c 100644
--- a/js/src/vm/EnvironmentObject.cpp
+++ b/js/src/vm/EnvironmentObject.cpp
@@ -491,7 +491,7 @@ ModuleEnvironmentObject::createImportBinding(JSContext* cx, HandleAtom importNam
{
RootedId importNameId(cx, AtomToId(importName));
RootedId localNameId(cx, AtomToId(localName));
- RootedModuleEnvironmentObject env(cx, module->environment());
+ RootedModuleEnvironmentObject env(cx, &module->initialEnvironment());
if (!importBindings().putNew(cx, importNameId, env, localNameId)) {
ReportOutOfMemory(cx);
return false;