blob: e56754e9e53c690c79c1ec344a60cf7772e03f96 [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| not be null");
}
try {
next.call(undefined);
} catch(e) {
assert(e, "TypeError: %ArrayIteratorPrototype%.next requires that |this| not be undefined");
}