function test(){
async function foo(x) {
const F = Float32Array;
const S = Set;
const A = Array;
const R = Reflect;
const O = Object;
const isF = isFinite;
const P = Proxy;
const Sym = Symbol;
const Boo = Boolean;
const JS = JSON;
const ev = eval;
for (let i = 536870912; i < x; i = i ** x) {
const f = await foo;
const s = i.splice();
}
async function bart() {
const w = new WeakMap();
const s = w.set();
}
const ret = bart();
}
const r = foo();
return r;
}
for(let i=0; i<1024; i++)
{
test();
}
Execute
./ch ./test.js
Error msg:
ASSERTION 2785381: (ChakraCore/lib/Runtime/./Types/RecyclableObject.h, line 527) VarIs<T>(aValue)
Failure: (VarIs<T>(aValue))
Illegal instruction
ChakraCore version: commit c3ead3f
Build cmd:
Test case:
Execute
Error msg: