diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-14 08:50:17 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-14 08:50:17 +0200 |
commit | a7f7a2231938e49ca2521fd417be7a313045c006 (patch) | |
tree | 6282d298b9b0200e43d79b91d5cb677ca51ac0ed | |
parent | b2ec36808a240cd8169190168c915cd0463f8c87 (diff) | |
download | UXP-a7f7a2231938e49ca2521fd417be7a313045c006.tar UXP-a7f7a2231938e49ca2521fd417be7a313045c006.tar.gz UXP-a7f7a2231938e49ca2521fd417be7a313045c006.tar.lz UXP-a7f7a2231938e49ca2521fd417be7a313045c006.tar.xz UXP-a7f7a2231938e49ca2521fd417be7a313045c006.zip |
Bug 1326453 - Part 2: Change @@toStringTag for module namespace objects to non-configurable
-rw-r--r-- | js/src/builtin/ModuleObject.cpp | 2 | ||||
-rw-r--r-- | js/src/jit-test/tests/modules/import-namespace.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/src/builtin/ModuleObject.cpp b/js/src/builtin/ModuleObject.cpp index 921319028..f7323e852 100644 --- a/js/src/builtin/ModuleObject.cpp +++ b/js/src/builtin/ModuleObject.cpp @@ -394,7 +394,7 @@ ModuleNamespaceObject::ProxyHandler::getOwnPropertyDescriptor(JSContext* cx, Han desc.object().set(proxy); desc.setWritable(false); desc.setEnumerable(false); - desc.setConfigurable(true); + desc.setConfigurable(false); desc.setValue(value); return true; } diff --git a/js/src/jit-test/tests/modules/import-namespace.js b/js/src/jit-test/tests/modules/import-namespace.js index 94a48461d..71a1ce7df 100644 --- a/js/src/jit-test/tests/modules/import-namespace.js +++ b/js/src/jit-test/tests/modules/import-namespace.js @@ -59,7 +59,7 @@ desc = Object.getOwnPropertyDescriptor(ns, Symbol.toStringTag); assertEq(desc.value, "Module"); assertEq(desc.writable, false); assertEq(desc.enumerable, false); -assertEq(desc.configurable, true); +assertEq(desc.configurable, false); assertEq(typeof desc.get, "undefined"); assertEq(typeof desc.set, "undefined"); assertEq(Object.prototype.toString.call(ns), "[object Module]"); |