summaryrefslogtreecommitdiff
path: root/quickjs-opcode.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2024-01-09 19:15:40 +0100
committerFabrice Bellard <fabrice@bellard.org>2024-01-09 19:15:40 +0100
commitf25e5d4094a11cf098670417e8a16ffb7cbadda0 (patch)
tree5b88af3b1a3c6023128d89660b4df93e632d7acd /quickjs-opcode.h
parente1e65aca9193b8f014bccf88484db4f410a05376 (diff)
downloadquickjs-f25e5d4094a11cf098670417e8a16ffb7cbadda0.tar.gz
quickjs-f25e5d4094a11cf098670417e8a16ffb7cbadda0.zip
optional chaining fixes (github issue #103)
Diffstat (limited to 'quickjs-opcode.h')
-rw-r--r--quickjs-opcode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/quickjs-opcode.h b/quickjs-opcode.h
index e032a44..6d2d6e9 100644
--- a/quickjs-opcode.h
+++ b/quickjs-opcode.h
@@ -286,6 +286,8 @@ def(scope_get_private_field, 7, 1, 1, atom_u16) /* obj -> value, emitted in phas
def(scope_get_private_field2, 7, 1, 2, atom_u16) /* obj -> obj value, emitted in phase 1, removed in phase 2 */
def(scope_put_private_field, 7, 2, 0, atom_u16) /* obj value ->, emitted in phase 1, removed in phase 2 */
def(scope_in_private_field, 7, 1, 1, atom_u16) /* obj -> res emitted in phase 1, removed in phase 2 */
+def(get_field_opt_chain, 5, 1, 1, atom) /* emitted in phase 1, removed in phase 2 */
+def(get_array_el_opt_chain, 1, 2, 1, none) /* emitted in phase 1, removed in phase 2 */
def( set_class_name, 5, 1, 1, u32) /* emitted in phase 1, removed in phase 2 */
def( line_num, 5, 0, 0, u32) /* emitted in phase 1, removed in phase 3 */