Implement the Set builtin object (#2841)

Also implement the missing iterator initializer part from the Map builtin object constructor.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2019-05-10 20:28:43 +02:00
committed by GitHub
parent 99c7a4040f
commit 4331e39b9a
22 changed files with 1031 additions and 131 deletions
+6
View File
@@ -117,3 +117,9 @@ assert(mapNameDesc.enumerable === false);
assert(mapNameDesc.configurable === true);
assert(Map.prototype.name === undefined);
m = new Map([{0: "foo", 1: 3}, {0 : "bar", 1 : 2}]);
assert (m.size === 2);
assert (m.get("foo") === 3);
assert (m.get("bar") === 2);