Uh oh!
There was an error while loading. Please reload this page.
Modules lkgr rebase - #53
Conversation
MylesBorins
commented
Mar 8, 2019
Took the liberty to squash some of the duplicated commits related to the loader revert. |
MylesBorins
commented
Mar 8, 2019
oh fun things are actually broken... going to dig in |
guybedford
commented
Mar 8, 2019
Fun indeed. Looks like it's - nodejs/node@b05fd4b, where the ESM init should happen after debug log. |
guybedford
commented
Mar 8, 2019
I've only glanced at it briefly, but something like moving this require - https://github.com/nodejs/node/blob/master/lib/internal/main/check_syntax.js#L14 so that it is inside of the function body after prepareMainThreadExecution() may help. |
eee6829 to
3be2e38CompareTook liberty to clean up the branch for upstreaming. 35 commits down to 7 (+1 for test fix). Did my best to split it up into observable bits. Still will need to go through it again and ensure that the test suite passes for each commit @guybedford@GeoffreyBooth@jdalton you all had commits that got squashed at some point. I've included all authors in commit meta data though. |
GeoffreyBooth
commented
Mar 9, 2019
Looks like the CI build failed? |
MylesBorins
commented
Mar 9, 2019
@GeoffreyBooth looks like my solution introduced a "double require" which the linter is yelling about. Will need to refactor a bit, but going to compare against upstream first |
3be2e38 to
02bcd09CompareMylesBorins
commented
Mar 10, 2019
another try at CI: https://ci.nodejs.org/job/node-test-pull-request/21386/ |
| let CJSModule; | ||
| function CJSModuleInit() { | ||
| if (!CJSModule) |
There was a problem hiding this comment.
this guard is probably not necessary... but I'm being paranoid
02bcd09 to
a0b1964CompareMylesBorins
commented
Mar 10, 2019
GeoffreyBooth
commented
Mar 10, 2019
Those three commits are basically: our Phase 0 work (remove stuff we’ll be replacing); add IRP; revert removal of loader code. I could see maybe the first and third being combined, but adding the IRP implementation feels like it should be its own commit. |
MylesBorins
commented
Mar 11, 2019
@GeoffreyBooth my thought process was that upstream there isn't necessarily any reason to keep this more granual, it is an artifact of our process. The loader revert is someone dependent on the types implementation in IRP... so it is a non-trivial amount of extra work to keep the tree clean. Keep in mind there is a non-zero chance all our work will be squashed into a single commit when landing on core. This is more about making review easier |
GeoffreyBooth
commented
Mar 11, 2019
Sure, whatever you think is best. |
Refs: nodejs/modules#180 PR-URL: #6 PR-URL: #12 Co-authored-by: Myles Borins <MylesBorins@google.com> Co-authored-by: John-David Dalton <john.david.dalton@gmail.com>
This reverts commit 1b0695b.
There are currently two supported values "explicit" and "node"
a0b1964 to
ea59221CompareMylesBorins
commented
Mar 11, 2019
landed in 2e2670a...ea59221 |
another day another conflict.