Make the Set.prototype values, keys and [@@iterator] methods to be one intrinsic method (#3777)

After this patch these methods will be the same function objects

JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi [email protected]
This commit is contained in:
Szilagyi Adam authored and GitHub committed 2020-06-18 13:59:31 +02:00
1 parent 16750e8171
commit 0f0041d720
8 files changed
+52 -7

No files matched your search

+2
View File
@@ -152,3 +152,5 @@ for (var value of s) {
assert(value === expected[loopCount++]);
}
assert(Set.prototype.values === Set.prototype.keys);