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

internalError unconsistent stack size #119

Closed
XiaoYeZiZhang opened this issue Jul 22, 2022 · 2 comments
Closed

internalError unconsistent stack size #119

XiaoYeZiZhang opened this issue Jul 22, 2022 · 2 comments

Comments

@XiaoYeZiZhang
Copy link

Hi there, qjs throws an error InternalError: unconsistent stack size: 2 3 (pc=45) on the following case:

function* test() {
	try {
		if(0 == (yield 1)) return;
	} finally {
		return;
	}
}
test();

but it seems ok if the case is:

function* test() {
	try {
		if((yield 1) == 0) return;
	} finally {
		return;
	}
}
test();

How can I fix this unconsistent stack size error?

Best regards and thanks for the great work.

@bellard
Copy link
Owner

bellard commented Dec 17, 2023

fixed (see issue #166)

@bellard bellard closed this as completed Dec 17, 2023
@XiaoYeZiZhang
Copy link
Author

XiaoYeZiZhang commented Dec 17, 2023 via email

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