You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
delete on an optional chain returns true without deleting the property #5319
Applying delete to a non-short-circuited optional chain (such as delete o?.a) evaluates the property access and returns true, but leaves the property on the object.
It should print true false on all three lines, as V8 and SpiderMonkey do and as ECMA-262 requires (delete on a non-short-circuited OptionalExpression receives a property Reference and must invoke [[Delete]] on the base object).
Activity