An issue with breaking out of labeled blocks
marccarigiet opened this issue · comments
Duktape Version
- Release 2.7.0
- 47eedc5d53
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.