The Tor Browser
/ file comparison
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
revisions
annotate
diff
comparison
raw
comparison: js/src/jit-test/tests/collections/Map-constructor-4.js
js/src/jit-test/tests/collections/Map-constructor-4.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:58d408bee575
1
// Map(x) throws if x is not iterable (unless x is undefined).
2
3
load(libdir + "asserts.js");
4
var nonIterables = [null, true, 1, -0, 3.14, NaN, {}, Math, this];
5
for (let k of nonIterables)
6
assertThrowsInstanceOf(function () { Map(k); }, TypeError);