Index: src/weak_collection.js |
diff --git a/src/weak_collection.js b/src/weak_collection.js |
index d61243aa13b63b97d5f2f13cdffb9f2d09668e26..d9666ca12850c222e62a930c9f03c64c1098cb37 100644 |
--- a/src/weak_collection.js |
+++ b/src/weak_collection.js |
@@ -89,7 +89,7 @@ function SetUpWeakMap() { |
%SetCode($WeakMap, WeakMapConstructor); |
%FunctionSetPrototype($WeakMap, new $Object()); |
- %AddProperty($WeakMap.prototype, "constructor", $WeakMap, DONT_ENUM); |
+ %AddNamedProperty($WeakMap.prototype, "constructor", $WeakMap, DONT_ENUM); |
// Set up the non-enumerable functions on the WeakMap prototype object. |
InstallFunctions($WeakMap.prototype, DONT_ENUM, $Array( |
@@ -169,7 +169,7 @@ function SetUpWeakSet() { |
%SetCode($WeakSet, WeakSetConstructor); |
%FunctionSetPrototype($WeakSet, new $Object()); |
- %AddProperty($WeakSet.prototype, "constructor", $WeakSet, DONT_ENUM); |
+ %AddNamedProperty($WeakSet.prototype, "constructor", $WeakSet, DONT_ENUM); |
// Set up the non-enumerable functions on the WeakSet prototype object. |
InstallFunctions($WeakSet.prototype, DONT_ENUM, $Array( |