Skip to content

Revert "Revert "vm: add importModuleDynamically option to compileFunction"" - #35431

Merged
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:revert-revert-ugh
Feb 5, 2021
Merged

Revert "Revert "vm: add importModuleDynamically option to compileFunction""#35431
devsnek merged 1 commit into
nodejs:masterfrom
devsnek:revert-revert-ugh

Conversation

@devsnek

@devsnekdevsnek commented Sep 30, 2020

Copy link
Copy Markdown
Member

This reverts commit 2d5d773.

See: #32985
See: #33364
See: #33166
Fixes: #31860

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

@nodejs-github-botnodejs-github-bot added doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory. vm Issues and PRs related to the vm subsystem. labels Sep 30, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/modules

@devsnekdevsnek added request-ci Add this label to start a Jenkins CI on a PR. and removed tools Issues and PRs related to the tools directory. labels Sep 30, 2020
@mcollina

Copy link
Copy Markdown
Member

@SimenB can you please check this does not make things worse for you?

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

Copy link
Copy Markdown
Collaborator

@devsnek

Copy link
Copy Markdown
MemberAuthor

also cc @nodejs/build as this involves that weird MSVC bug

@SimenB

Copy link
Copy Markdown
Member

Exciting!

@mcollina I was never able to reproduce the original issue (beyond seeing it on CI), so I don't think I'll be able to verify anything here. Sorry 🙁 If there's any way of sticking a build of this branch on CI I'm happy to do that to see if the issue pops up?

@mcollina

Copy link
Copy Markdown
Member

cc @targos

@mcollina

Copy link
Copy Markdown
Member

@targos@BethGriggs could you please generate a new build like the ones you used to generate back in #33166?

I've tried building this patch myself but I can't reproduce.

@targos

Copy link
Copy Markdown
Member

@targos

Copy link
Copy Markdown
Member

@mcollinamcollina 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, I cannot reproduce this anymore. I would be very careful in backporting this to v14 as there is something there that caused the problem.

@mcollina

Copy link
Copy Markdown
Member

@devsnek could you rebase?

@SimenB

Copy link
Copy Markdown
Member

Note that if you're testing with jest@26.5.0 or newer, it no longer uses compileFunction - we moved back to vm.Script due to #35375. Verify jest-runtime is on an older release than that to test with compileFunction

@mcollina

Copy link
Copy Markdown
Member

I've been using the same setup I used last time (which the last time I used my windows laptop).

Comment threaddoc/api/vm.md Outdated
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@aduh95aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 5, 2021
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

This reverts commit 2d5d773.
See: nodejs#32985
See: nodejs#33364
See: nodejs#33166Fixes: nodejs#31860
PR-URL: nodejs#35431
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
@devsnek
devsnek merged commit bf2f2b7 into nodejs:masterFeb 5, 2021
@devsnek
devsnek deleted the revert-revert-ugh branch February 5, 2021 15:19
danielleadams pushed a commit that referenced this pull request Feb 16, 2021
This reverts commit 2d5d773.
See: #32985
See: #33364
See: #33166Fixes: #31860
PR-URL: #35431
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org>
This was referenced Feb 16, 2021
@targostargos added the baking-for-lts PRs that need to wait before landing in a LTS release. label May 27, 2021
@targostargos removed the baking-for-lts PRs that need to wait before landing in a LTS release. label Sep 16, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.docIssues and PRs related to the documentations.vmIssues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vm.compileFunction is missing importModuleDynamically

7 participants

@devsnek@nodejs-github-bot@mcollina@SimenB@targos@ryzokuken@aduh95