Implement optional chaining (#5164)

The work is based on PR #4843, only fixed some conflicts and cppcheck errors.

Co-authored-by: Robert Fancsik robert.fancsik@h-lab.eu
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
This commit is contained in:
Gergo Csizi
2024-11-20 11:57:58 +01:00
committed by GitHub
parent e9f08a7879
commit f54f2d3a7b
14 changed files with 1012 additions and 412 deletions
+1
View File
@@ -165,6 +165,7 @@ typedef enum
VM_OC_JUMP, /**< jump */
VM_OC_BRANCH_IF_NULLISH, /** branch if undefined or null */
VM_OC_BRANCH_OPTIONAL_CHAIN, /** branch if undefined or null and adjust stack */
VM_OC_POP_REFERENCE, /** prop identifier or property reference from the stack */
VM_OC_BRANCH_IF_STRICT_EQUAL, /**< branch if strict equal */