Skip to content

fix: disable use of the vm module in the renderer - #26087

Merged
codebytere merged 1 commit into
masterfrom
intercept-vm
Oct 23, 2020
Merged

codebytere merged 1 commit into
masterfrom
intercept-vm

Conversation

@codebytere

@codebytere codebytere commented Oct 21, 2020 •

Copy link
Copy Markdown
Member

Description of Change

Closes #25888.
Refs #25910 (comment).

Deprecate the use of the vm module in the Renderer process - as @nornagon noted, Blink assumes in many places that all Contexts come with a ScriptState, and thus using Node.js' vm module in the renderer process is asking for trouble. This adds a deprecation warning for future removal.

cc @nornagon @MarshallOfSound

Checklist

Release Notes

Notes: Deprecated the use of the vm module in the renderer process.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Oct 21, 2020
Comment thread lib/common/reset-search-paths.ts Resolved
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Oct 22, 2020
@codebytere

Copy link
Copy Markdown
Member Author

webContents module printToPDF() can print to PDF

failure is unrelated.

@codebytere
codebytere merged commit e89abed into master Oct 23, 2020
@release-clerk

release-clerk Bot commented Oct 23, 2020

Copy link
Copy Markdown

Release Notes Persisted

Deprecated the use of the vm module in the renderer process.

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.

electron crash when using node vm

3 participants