FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

assert,repl: enable ecmaVersion 2021 in acorn parser by targos · Pull Request #35827 · nodejs/node · GitHub

/ node Public

assert,repl: enable ecmaVersion 2021 in acorn parser - #35827

Closed
targos wants to merge 2 commits into
nodejs:masterfrom
targos:acorn-21
Closed

assert,repl: enable ecmaVersion 2021 in acorn parser#35827
targos wants to merge 2 commits into
nodejs:masterfrom
targos:acorn-21

Conversation

targos commented Oct 27, 2020

Copy link
Copy Markdown
Member

This adds support for the new logical assignment operators.

This adds support for the new logical assignment operators.
targos added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 27, 2020
nodejs-github-bot added assert Issues and PRs related to the assert subsystem. repl Issues and PRs related to the REPL subsystem. labels Oct 27, 2020

targos commented Oct 27, 2020

Copy link
Copy Markdown
Member Author

@jasnell

github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 27, 2020

Copy link
Copy Markdown
Collaborator

Trott left a comment
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should we add an assert or repl test using the logical assignment operators in a way that would break without the acorn update? (Non-blocking question.)

targos commented Oct 27, 2020

Copy link
Copy Markdown
Member Author

Should we add an assert or repl test using the logical assignment operators in a way that would break without the acorn update? (Non-blocking question.)

I'm not sure that's worth the effort.

BridgeAR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I suggest to use latest instead to prevent future updates. This is a recent feature added to acorn (https://github.com/acornjs/acorn/tree/master/acorn#interface).

Comment thread lib/assert.js Outdated
Comment thread lib/internal/repl/await.js Outdated
Comment thread lib/internal/repl/utils.js Outdated

Copy link
Copy Markdown
Member

I suggest to use latest instead to prevent future updates. This is a recent feature added to acorn (https://github.com/acornjs/acorn/tree/master/acorn#interface).

Is that not going to cause maintenance issues when the code ends up in release lines?

Copy link
Copy Markdown
Member

Is that not going to cause maintenance issues when the code ends up in release lines?

I am not certain I fully understand the comment. AFAIK the suggestion should minimize the maintenance need due to always providing the latest features acorn supports. Thus, there should be no need for a PR like this one after upgrading acorn.

Copy link
Copy Markdown
Member

Is that not going to cause maintenance issues when the code ends up in release lines?

I am not certain I fully understand the comment. AFAIK the suggestion should minimize the maintenance need due to always providing the latest features acorn supports. Thus, there should be no need for a PR like this one after upgrading acorn.

I mean that, say, we cut Node.js 16 with it set to latest but at some point latest picks up new language features that are not supported by Node.js 16.

Copy link
Copy Markdown
Member

I mean that, say, we cut Node.js 16 with it set to latest but at some point latest picks up new language features that are not supported by Node.js 16.

That should not be an issue: it would fail execution in the REPL and assert would not be able to execute the code in the first place if it would not be supported.

But it's actually very unlikely to even get to that: we'd have to update acorn without noticing it already supporting features that Node.js does not and that has never happened before as far as I can tell. Acorn only supports features that are stable and we'd have to lack behind on updating V8 quite a lot for it to happen.

Copy link
Copy Markdown
Member

But it's actually very unlikely to even get to that: we'd have to update acorn without noticing it already supporting features that Node.js does not and that has never happened before as far as I can tell. Acorn only supports features that are stable and we'd have to lack behind on updating V8 quite a lot for it to happen.

¯\_(ツ)_/¯ I'm going off #35791 (comment) which implied that this PR shouldn't be backported to Node.js 14.

Co-authored-by: Ruben Bridgewater <ruben@bridgewater.de>
targos added request-ci Add this label to start a Jenkins CI on a PR. and removed dont-land-on-v14.x labels Oct 28, 2020

targos commented Oct 28, 2020

Copy link
Copy Markdown
Member Author

@BridgeAR convinced me that it should not be an issue if Acorn supports more syntax than V8.

github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 28, 2020

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

targos added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 30, 2020
github-actions Bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 30, 2020

Copy link
Copy Markdown
Contributor

Landed in 87a6b60...0ddd69e

github-actions Bot closed this Oct 30, 2020
nodejs-github-bot pushed a commit that referenced this pull request Oct 30, 2020
This adds support for the new logical assignment operators.

PR-URL: #35827
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos deleted the acorn-21 branch October 30, 2020 14:56
targos added a commit that referenced this pull request Nov 3, 2020
This adds support for the new logical assignment operators.

PR-URL: #35827
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
targos mentioned this pull request Nov 3, 2020
BethGriggs pushed a commit that referenced this pull request Dec 8, 2020
This adds support for the new logical assignment operators.

PR-URL: #35827
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
BethGriggs pushed a commit that referenced this pull request Dec 10, 2020
This adds support for the new logical assignment operators.

PR-URL: #35827
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
BethGriggs mentioned this pull request Dec 10, 2020
BethGriggs pushed a commit that referenced this pull request Dec 15, 2020
This adds support for the new logical assignment operators.

PR-URL: #35827
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

assert Issues and PRs related to the assert subsystem. repl Issues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants


Back | FazBrowse Home | New Git URL