es-meta / esmeta

ECMAScript Specification (ECMA-262) Metalanguage
BSD 3-Clause "New" or "Revised" License
205 stars 14 forks source link

'null' check before property access #62

Open h2oche opened 2 years ago

h2oche commented 2 years ago

https://github.com/tc39/ecma262/pull/2267 changes the behavior of object property access of specification, which seems to be incorrect when compared to other JS engines.

Related Issues

Related tests (# of tests = 35)

New Task

jhnaldo commented 2 years ago

I checked this problem is now solved in the latest ECMA-262 and Test262. However, this problem seems still not been resolved:

$ esmeta test262-test -extract:target=e30935d -test262-test:target=dc1dc28aa4 tests/test262/test/language/expressions/compound-assignment/S11.13.2_A7.10_T1.js -silent
# [InterpreterError] return not undefined: comp[~throw~](#2720)

I think we should open a new issue or send a pull request to resolve this problem.