summaryrefslogtreecommitdiff
path: root/quickjs-opcode.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2023-12-13 19:02:47 +0100
committerFabrice Bellard <fabrice@bellard.org>2023-12-13 19:02:47 +0100
commit4bb8c35da7c83b5eb67541772b857e822da855da (patch)
tree3e4d0e578217c85af579416d4d644fa132cc13da /quickjs-opcode.h
parent57105c7f23d196b2a6d954d70c290d021f8bbefc (diff)
downloadquickjs-4bb8c35da7c83b5eb67541772b857e822da855da.tar.gz
quickjs-4bb8c35da7c83b5eb67541772b857e822da855da.zip
fixed 'return' handling with 'yield' in 'for of' or with finally blocks (gihub ticket #166)
Diffstat (limited to 'quickjs-opcode.h')
-rw-r--r--quickjs-opcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickjs-opcode.h b/quickjs-opcode.h
index 15a9fce..55e9809 100644
--- a/quickjs-opcode.h
+++ b/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)