Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion error: bad type object in conversion ToInteger #6964

Open
Tracked by #6988
anbu1024 opened this issue Nov 30, 2023 · 1 comment
Open
Tracked by #6988

Assertion error: bad type object in conversion ToInteger #6964

anbu1024 opened this issue Nov 30, 2023 · 1 comment

Comments

@anbu1024
Copy link

ChakraCore version:
commit c3ead3f

Build cmd:

./build.sh --debug --static

Test case:

function test(){
	async function foo(a1,a2) {
	
		for (let i = a2; i < a1; i = i ** foo) {
		    const x = await i;
		}
		
		function bar () {
		}
		
		const u = new Uint8Array(bar);
		const p = new Proxy(u,Reflect);
		const o = Object.seal(p);
	}
	
	const r = foo();
	return r;
}

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

Execute

./ch ./test.js

Error msg:

ASSERTION 2791936: (ChakraCore/lib/Runtime/Language/JavascriptConversion.cpp, line 938) bad type object in conversion ToInteger
 Failure: (JavascriptOperators::IsObject(aValue))
Illegal instruction
@rhuanjl
Copy link
Collaborator

rhuanjl commented Apr 22, 2024

This is one of a number of bugs in the jitting of generator functions.

See #6293 #6533 #6662 #6684 #6700 and #6706 for progress on this area - I think currently we are planning to disable it by default before making any released version; it's a shame but I fear its implementation is just too fragile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants