Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index 7bb2393a7da32fb4a10251792b276589185e0100..26e9344ae74de3c692a515922d0d3429c65c391e 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -236,6 +236,7 @@ function SetForEach(f, receiver) { |
%SetCode($Set, SetConstructor); |
+%FunctionSetLength($Set, 0); |
%FunctionSetPrototype($Set, new $Object()); |
%AddNamedProperty($Set.prototype, "constructor", $Set, DONT_ENUM); |
%AddNamedProperty( |
@@ -424,6 +425,7 @@ function MapForEach(f, receiver) { |
%SetCode($Map, MapConstructor); |
+%FunctionSetLength($Map, 0); |
%FunctionSetPrototype($Map, new $Object()); |
%AddNamedProperty($Map.prototype, "constructor", $Map, DONT_ENUM); |
%AddNamedProperty( |