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

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

Closed
wants to merge 2 commits into from

Conversation

Copy link
Contributor

@guybedford guybedford commented Oct 13, 2020

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
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 13, 2020

Review requested:

@nodejs-github-bot nodejs-github-bot added the esm label Oct 13, 2020
@guybedford guybedford changed the title [WIP] module: big endian support for cjs lexer module: cjs-module-lexer@0.4.1 big endian fix Oct 13, 2020
@guybedford guybedford requested a review from richardlau Oct 13, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 13, 2020

Copy link
Member

@richardlau richardlau left a comment

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
Contributor Author

@guybedford guybedford commented Oct 13, 2020

@richardlau thanks, well-remembered!

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 13, 2020

@richardlau richardlau added the request-ci label Oct 13, 2020
@github-actions github-actions bot removed the request-ci label Oct 13, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 13, 2020

Copy link
Member

@ryzokuken ryzokuken left a comment

RSLGTM

@ExE-Boss
Copy link
Contributor

@ExE-Boss ExE-Boss commented Oct 14, 2020

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).

@guybedford guybedford changed the title module: cjs-module-lexer@0.4.1 big endian fix module: cjs-module-lexer@0.4.2 big endian fix Oct 14, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented Oct 14, 2020

@guybedford
Copy link
Contributor Author

@guybedford guybedford commented Oct 14, 2020

@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
Member

@MylesBorins MylesBorins commented Oct 14, 2020

@guybedford is this ready to go?

@guybedford
Copy link
Contributor Author

@guybedford guybedford commented Oct 14, 2020

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

Copy link
Member

@MylesBorins MylesBorins left a comment

RSLGTM

@MylesBorins
Copy link
Member

@MylesBorins MylesBorins commented Oct 14, 2020

can we fast-track?

@MylesBorins MylesBorins added the fast-track label Oct 14, 2020
MylesBorins pushed a commit that referenced this issue 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
Member

@MylesBorins MylesBorins commented Oct 14, 2020

Landed in ab0af50

MylesBorins pushed a commit that referenced this issue 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 MylesBorins mentioned this pull request Oct 14, 2020
MylesBorins pushed a commit that referenced this issue 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>
@MylesBorins MylesBorins mentioned this pull request Nov 3, 2020
MylesBorins pushed a commit that referenced this issue 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 issue 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esm fast-track
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants