diff options
author | Moonchild <moonchild@palemoon.org> | 2020-08-27 07:18:58 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-08-27 07:18:58 +0000 |
commit | 6eb0dd86111cc2a7c55dfdc3eeb29a34c52e8035 (patch) | |
tree | 72ac400c74fb899e3af8cdb3745404edebabc20d /js/src/vm/EnvironmentObject.cpp | |
parent | f909e1a6cb1cd45e0a29c98c298ec843a229a11d (diff) | |
parent | 8924e4ddd3d0b463ed3694fb788df9928d4e7dd5 (diff) | |
download | UXP-6eb0dd86111cc2a7c55dfdc3eeb29a34c52e8035.tar UXP-6eb0dd86111cc2a7c55dfdc3eeb29a34c52e8035.tar.gz UXP-6eb0dd86111cc2a7c55dfdc3eeb29a34c52e8035.tar.lz UXP-6eb0dd86111cc2a7c55dfdc3eeb29a34c52e8035.tar.xz UXP-6eb0dd86111cc2a7c55dfdc3eeb29a34c52e8035.zip |
Merge branch 'es-modules-work'
Diffstat (limited to 'js/src/vm/EnvironmentObject.cpp')
-rw-r--r-- | js/src/vm/EnvironmentObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/EnvironmentObject.cpp b/js/src/vm/EnvironmentObject.cpp index 7834940f1..871ae3f19 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->initialEnvironment()); - if (!importBindings().putNew(cx, importNameId, env, localNameId)) { + if (!importBindings().put(cx, importNameId, env, localNameId)) { ReportOutOfMemory(cx); return false; } |