1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

LibJS/Bytecode: Make typeof return "undefined" on unresolvable IDs

Previously it would throw instead of returning "undefined" for
`typeof Identifier` if Identifier does not exist.
This commit is contained in:
Luke Wilde 2022-06-11 23:12:22 +01:00 committed by Ali Mohammad Pur
parent c0fadfb9b7
commit 482a827346
4 changed files with 55 additions and 1 deletions

View file

@ -82,6 +82,7 @@
O(Sub) \
O(Throw) \
O(Typeof) \
O(TypeofVariable) \
O(UnaryMinus) \
O(UnaryPlus) \
O(UnsignedRightShift) \