Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index ac12331eed1cf8c3eda72d8768595e0594ff9836..e5fc0b33c8813a8071b85871d59166eca6d76eee 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -147,7 +147,7 @@ function SetUpSet() { |
%SetCode($Set, SetConstructor); |
%FunctionSetPrototype($Set, new $Object()); |
- %AddProperty($Set.prototype, "constructor", $Set, DONT_ENUM); |
+ %AddNamedProperty($Set.prototype, "constructor", $Set, DONT_ENUM); |
%FunctionSetLength(SetForEach, 1); |
@@ -282,7 +282,7 @@ function SetUpMap() { |
%SetCode($Map, MapConstructor); |
%FunctionSetPrototype($Map, new $Object()); |
- %AddProperty($Map.prototype, "constructor", $Map, DONT_ENUM); |
+ %AddNamedProperty($Map.prototype, "constructor", $Map, DONT_ENUM); |
%FunctionSetLength(MapForEach, 1); |