chakra-core/ChakraCore

Illegal instruction (core dumped) ASSERTION 1542080: (ChakraCore/lib/Jsrt/../Runtime/Types/RecyclableObject.h, line 492) VarIs: aValue is null

anbu1024 opened this issue · 0 comments

ChakraCore version:
commit c3ead3f

Build cmd:

./build.sh --debug --static

Test case:

function test(){
	async function foo() {
	
		const a = await 159654258;
		
		const b = [170151481,170151481];
		
		const c = delete (170151481)[7];
		
		const d = b.splice(c);
		
		const e = delete (170151481)[7];
		
		b[1578154960] = b;
	}
	
	const bar = foo();
	return bar;
}

for(let i=0; i<0x300; i++) {
	test();
}

Error msg:

ASSERTION 1542080: (ChakraCore/lib/Jsrt/../Runtime/Types/RecyclableObject.h, line 492) VarIs: aValue is null
 Failure: (aValue != nullptr)
Illegal instruction (core dumped)