Skip to content

fix: do not register the node ESM loader in renderer processes#24301

Merged
codebytere merged 3 commits intomasterfrom
fix-esm
Jul 16, 2020
Merged

fix: do not register the node ESM loader in renderer processes#24301
codebytere merged 3 commits intomasterfrom
fix-esm

Conversation

@MarshallOfSound
Copy link
Copy Markdown
Member

Only one ESM loader can be registered per isolate, in renderer processes this should be blink. This patches node so that it won't register its handler (overriding blinks) in non-browser processes.

Notes: no-notes

@MarshallOfSound MarshallOfSound requested a review from a team as a code owner June 25, 2020 16:32
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jun 25, 2020
@deepak1556
Copy link
Copy Markdown
Member

Is it possible to add test for this change ?

@codebytere
Copy link
Copy Markdown
Member

codebytere commented Jun 25, 2020

@deepak1556 and @MarshallOfSound i think yes - we added the sandbox change to ARM to account for this here, so we should be able to remove it now. If it fails, we know this didn't have the intended effect.

@deepak1556
Copy link
Copy Markdown
Member

Failing vanilla node tests are related.

@codebytere
Copy link
Copy Markdown
Member

codebytere commented Jun 25, 2020

oh boy missed those - i think we'll need to ensure it's enabled in run as node mode @MarshallOfSound

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 26, 2020
@codebytere
Copy link
Copy Markdown
Member

@MarshallOfSound can you rebase this against the accepted upstream solution: nodejs/node#34060

@codebytere codebytere changed the title fix: do not register the node ESM loader in renderer processes [wip] fix: do not register the node ESM loader in renderer processes Jul 15, 2020
@codebytere codebytere changed the title [wip] fix: do not register the node ESM loader in renderer processes fix: do not register the node ESM loader in renderer processes Jul 15, 2020
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Jul 16, 2020

No Release Notes

@codebytere codebytere deleted the fix-esm branch July 16, 2020 15:09
georgexu99 pushed a commit to georgexu99/electron that referenced this pull request Jul 28, 2020
georgexu99 pushed a commit to georgexu99/electron that referenced this pull request Jul 28, 2020
sentialx pushed a commit to sentialx/electron that referenced this pull request Jul 30, 2020
sentialx pushed a commit to sentialx/electron that referenced this pull request Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants