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

Derived class need to define marshal to script context Failure: (VirtualTableInfo<ScriptFunction>::HasVirtualTable(this)) #6961

Open
anbu1024 opened this issue Nov 30, 2023 · 0 comments

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 < foo; i = i + 3705358555) {
		    const ret = await a1;
		}
		
		async function bar() {
		}
		
		const p = new Proxy(Reflect,bar);
		p.__proto__ = bar;
	}
	
	foo();
	new Float32Array(Float32Array);
	
	function baz(v21,v22) {
		let {"constructor":v23,"ignoreCase":v24,"length":v25,} = v21;
	}
	const r = baz(foo,foo);
	return r;
}

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

Execute

./ch ./test.js

Error msg:

ASSERTION 2779735: (ChakraCore/lib/Runtime/./Library/ScriptFunction.h, line 78) Derived class need to define marshal to script context
 Failure: (VirtualTableInfo<ScriptFunction>::HasVirtualTable(this))
Illegal instruction
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

1 participant