Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'null' check before property access #62

Closed
1 task
h2oche opened this issue Mar 14, 2022 · 2 comments
Closed
1 task

'null' check before property access #62

h2oche opened this issue Mar 14, 2022 · 2 comments
Assignees
Labels
area:js Related to JavaScript report Create issues/pull requests to other projects

Comments

@h2oche
Copy link
Contributor

h2oche commented Mar 14, 2022

tc39/ecma262#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)

  • test/language/expressions/compound-assignment/S11.13.2_A7.10_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.10_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.11_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.11_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.1_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.1_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.2_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.2_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.3_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.3_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.4_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.4_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.5_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.5_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.6_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.6_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.7_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.7_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.8_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.8_T2.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.9_T1.js
  • test/language/expressions/compound-assignment/S11.13.2_A7.9_T2.js
  • test/language/expressions/logical-assignment/lgcl-and-assignment-operator-lhs-before-rhs.js
  • test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-lhs-before-rhs.js
  • test/language/expressions/logical-assignment/lgcl-or-assignment-operator-lhs-before-rhs.js
  • test/language/expressions/postfix-decrement/S11.3.2_A6_T1.js
  • test/language/expressions/postfix-decrement/S11.3.2_A6_T2.js
  • test/language/expressions/postfix-increment/S11.3.1_A6_T1.js
  • test/language/expressions/postfix-increment/S11.3.1_A6_T2.js
  • test/language/expressions/prefix-decrement/S11.4.5_A6_T1.js
  • test/language/expressions/prefix-decrement/S11.4.5_A6_T2.js
  • test/language/expressions/prefix-increment/S11.4.4_A6_T1.js
  • test/language/expressions/prefix-increment/S11.4.4_A6_T2.js
  • language/expressions/assignment/target-member-computed-reference-null.js
  • language/expressions/assignment/target-member-computed-reference-undefined.js

New Task

  • Open a new issue or send a pull request
@h2oche h2oche added report Create issues/pull requests to other projects area:js Related to JavaScript labels Mar 14, 2022
@h2oche h2oche changed the title null check 'null' check before property access Mar 14, 2022
@jhnaldo jhnaldo self-assigned this Sep 9, 2022
@jhnaldo
Copy link
Contributor

jhnaldo commented Sep 9, 2022

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.

@jhnaldo
Copy link
Contributor

jhnaldo commented Dec 2, 2024

While this issue was related to tc39/test262#4060, the recent version of ESMeta resolves this issue by following the new evaluation order of property key resolutions.

@jhnaldo jhnaldo closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:js Related to JavaScript report Create issues/pull requests to other projects
Projects
None yet
Development

No branches or pull requests

3 participants