blob: 3c297ef51915e7f8578399a5a91daaf111123f43 [file] [log] [blame]
function assert(a, b) {
if (a != b)
throw new Error("assertion failed");
}
next = [].values().next;
try {
next.call(null);
} catch(e) {
assert(e, "TypeError: %ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance");
}
try {
next.call(undefined);
} catch(e) {
assert(e, "TypeError: %ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance");
}