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

An issue with breaking out of labeled blocks #2546

Open
marccarigiet opened this issue Sep 16, 2023 · 0 comments
Open

An issue with breaking out of labeled blocks #2546

marccarigiet opened this issue Sep 16, 2023 · 0 comments

Comments

@marccarigiet
Copy link

marccarigiet commented Sep 16, 2023

Duktape Version

OS

  • Ubuntu 20.04

** Description**
Breaking out of a labeled block with only one statement throws an error.

Test case

label1: break label1; 

Error message

Error: INVALID opcode (0)
    at [anon] (duk_js_executor.c:5215) internal
    at global (1.js:1) preventsyield
error in executing file 1.js

Expected behavior
No error should be thrown.

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