-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Wrong hint message when parsing expression such as {a:1}['a'] === 1 in node #31820
Comments
The two ways this is parsed:
We should probably eagerly try to wrap all input in parens in the actual evaluator. |
Mind if i take a stab at this one? |
That might break working code, or am I missing something?
|
@tniessen if the code isn't valid with parens, parens are not used. the logic should more or less be: |
Closed in #31943. |
Welcome to Node.js v13.8.0.
Type ".help" for more information.
I tested on Chrome, it always shows false. I'm sure this is a bug.
What steps will reproduce the bug?
Type {a:1}['a'] === 1 in a node console.
How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior?
The gray font of 'true' in this image should be 'false'!
The text was updated successfully, but these errors were encountered: