mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Bug 1326453 - Part 2: Change @@toStringTag for module namespace objects to non-configurable
This commit is contained in:
parent
99f20bdc22
commit
307c8cb570
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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]");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue