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