svaarala / duktape

Duktape - embeddable Javascript engine with a focus on portability and compact footprint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An issue with breaking out of labeled blocks

marccarigiet opened this issue · comments

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.