Skip to content

module: cjs-module-lexer@0.4.2 big endian fix - #35634

Closed
guybedford wants to merge 2 commits into
nodejs:masterfrom
guybedford:cjs-lexer-be
Closed

module: cjs-module-lexer@0.4.2 big endian fix#35634
guybedford wants to merge 2 commits into
nodejs:masterfrom
guybedford:cjs-lexer-be

Conversation

@guybedford

@guybedfordguybedford commented Oct 13, 2020

Copy link
Copy Markdown
Contributor

This updates to cjs-module-lexer@0.4.1 with the fix at nodejs/cjs-module-lexer#13 for big endian support.

This should fix the previous Web Assembly issues found in #35583.

Note this is a performance improvement only and not a bug fix since we had the gracefull fallback previously.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/modules

@nodejs-github-botnodejs-github-bot added the esm Issues and PRs related to the ECMAScript Modules implementation. label Oct 13, 2020
@guybedfordguybedford changed the title [WIP] module: big endian support for cjs lexermodule: cjs-module-lexer@0.4.1 big endian fixOct 13, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@richardlaurichardlau 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.

LGTM with a passing CI. Wasn't there a documentation link that should be updated to match the version of cjs-module-lexer used?

@guybedford

Copy link
Copy Markdown
ContributorAuthor

@richardlau thanks, well-remembered!

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@richardlaurichardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 13, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 13, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ryzokukenryzokuken left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

RSLGTM

@ExE-Boss

ExE-Boss commented Oct 14, 2020

Copy link
Copy Markdown
Contributor

I think it might be a good idea to also get nodejs/cjs-module-lexer#14 into this.

Also, there’s a major bug in big endian mode that causes the most significant nibble to be discarded: nodejs/cjs-module-lexer#13 (comment).

@guybedfordguybedford changed the title module: cjs-module-lexer@0.4.1 big endian fixmodule: cjs-module-lexer@0.4.2 big endian fixOct 14, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@guybedford

Copy link
Copy Markdown
ContributorAuthor

@ExE-Boss thanks for spotting that, it wasn't affecting the execution because the mask was unnecessary due to the bit shift. I've updated to 0.4.2 that corrects the unnecessary op.

@MylesBorins

Copy link
Copy Markdown
Contributor

@guybedford is this ready to go?

@guybedford

Copy link
Copy Markdown
ContributorAuthor

@MylesBorins yes it is, it just needs another 24 hours to land I think unless you want to fast track.

@MylesBorinsMylesBorins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

RSLGTM

@MylesBorins

Copy link
Copy Markdown
Contributor

can we fast-track?

@MylesBorinsMylesBorins added the fast-track PRs that do not need to wait for 48 hours to land. label Oct 14, 2020
MylesBorins pushed a commit that referenced this pull request Oct 14, 2020
PR-URL: #35634
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
@MylesBorins

Copy link
Copy Markdown
Contributor

Landed in ab0af50

MylesBorins pushed a commit that referenced this pull request Oct 14, 2020
PR-URL: #35634
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
@MylesBorinsMylesBorins mentioned this pull request Oct 14, 2020
MylesBorins pushed a commit that referenced this pull request Nov 3, 2020
PR-URL: #35634
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
@MylesBorinsMylesBorins mentioned this pull request Nov 3, 2020
MylesBorins pushed a commit that referenced this pull request Nov 16, 2020
PR-URL: #35634
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
PR-URL: nodejs#35634
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esmIssues and PRs related to the ECMAScript Modules implementation.fast-trackPRs that do not need to wait for 48 hours to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@guybedford@nodejs-github-bot@ExE-Boss@MylesBorins@targos@richardlau@ryzokuken