js-on-sx: delete <ident> returns false per non-strict spec
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 27s

This commit is contained in:
2026-05-10 11:20:24 +00:00
parent e93e1eeab1
commit 0142d69212
2 changed files with 4 additions and 0 deletions

View File

@@ -225,6 +225,8 @@
(js-sym "js-delete-prop")
(js-transpile (nth arg 1))
(js-transpile (nth arg 2))))
((js-tag? arg "js-ident") false)
((js-tag? arg "js-paren") (js-transpile-unop op (nth arg 1)))
(else true)))
((and (= op "typeof") (js-tag? arg "js-ident"))
(let