diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2023-12-13 19:02:47 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-14 11:24:33 +0100 |
commit | 7e4ec78a6ebeefc3bae042e47a014854af54694d (patch) | |
tree | 6756b714d611552dad6866bb8effbed6c6899331 /lib/quickjs/quickjs-opcode.h | |
parent | 8f2f06255105f68bf81c064be4982961102128a6 (diff) | |
download | chawan-7e4ec78a6ebeefc3bae042e47a014854af54694d.tar.gz |
fixed 'return' handling with 'yield' in 'for of' or with finally blocks (gihub ticket #166)
Diffstat (limited to 'lib/quickjs/quickjs-opcode.h')
-rw-r--r-- | lib/quickjs/quickjs-opcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/quickjs-opcode.h b/lib/quickjs/quickjs-opcode.h index 15a9fce6..55e9809e 100644 --- a/lib/quickjs/quickjs-opcode.h +++ b/lib/quickjs/quickjs-opcode.h @@ -182,6 +182,7 @@ DEF( goto, 5, 0, 0, label) /* must come after if_true */ DEF( catch, 5, 0, 1, label) DEF( gosub, 5, 0, 0, label) /* used to execute the finally block */ DEF( ret, 1, 1, 0, none) /* used to return from the finally block */ +DEF( nip_catch, 1, 2, 1, none) /* catch ... a -> a */ DEF( to_object, 1, 1, 1, none) //DEF( to_string, 1, 1, 1, none) @@ -208,7 +209,6 @@ DEF( for_of_next, 2, 3, 5, u8) DEF(iterator_check_object, 1, 1, 1, none) DEF(iterator_get_value_done, 1, 1, 2, none) DEF( iterator_close, 1, 3, 0, none) -DEF(iterator_close_return, 1, 4, 4, none) DEF( iterator_next, 1, 4, 4, none) DEF( iterator_call, 2, 4, 5, u8) DEF( initial_yield, 1, 0, 0, none) |