blob: c981499de8ca6e0d52cb506d6bb5098f7be6df61 [file] [log] [blame] [edit]
function test(n) {
return n === Object(n);
}
noInline(test);
function assert(condition) {
if (!condition)
throw new Error("assertion failed");
}
for (i = 0; i < testLoopCount; i++) {
assert(!test(null));
assert(!test(undefined));
assert(!test(1));
assert(!test(""));
assert(!test(Symbol.iterator));
assert(test({}));
}