-
Notifications
You must be signed in to change notification settings - Fork 16.9k
refactor: load electron builtin modules with process._linkedBinding #17247
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
Conversation
|
Preferred explicit module registration over |
addaleax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, although it might still be nice if we could ultimately end up using public Node.js APIs for this
MarshallOfSound
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems too easy to be true so approving before something breaks 😆
The public api ends up defining the module registrators with |
|
@deepak1556 I think it might just be an issue of copying/inlinine The layout of the |
|
Ah okay I misunderstood the public api switch then!
Yeah this should be good thing to do, given the guarantee. Thanks! |
NODE_BUILTING_MODULE_CONTEXT_AWARE and process.binding are removed in nodejs/node#25829. This changes uses the alternative available without any functionality change.
9a68f31 to
8f10100
Compare
|
The linux tests failed here with
Which is confusing 🤔 cc @nornagon |
|
afaict that's a flake. I don't know what's causing it, perhaps some change in circleci's internal architecture? I've tried rerunning the test, let's see how it goes. |
|
@nornagon As part of the setuid PR will the setuid sandbox become usable by the tests? Would be good to see that flake disappear as a result of that work if it is actually a flake. |
|
i'm a little worried about why it only happens sometimes, it shouldn't be flaky. |
|
@nornagon If we're happy the flake isn't somehow caused by this PR I think we're good to merge it now |
|
i'm pretty sure i've seen it in other PRs and i can't imagine this would cause such a flake so i'm pretty sure we're good to go. |
|
No Release Notes |
…17247) * refactor: load electron builtin modules with process._linkedBinding NODE_BUILTING_MODULE_CONTEXT_AWARE and process.binding are removed in nodejs/node#25829. This changes uses the alternative available without any functionality change. * chore: roll node
…17247) * refactor: load electron builtin modules with process._linkedBinding NODE_BUILTING_MODULE_CONTEXT_AWARE and process.binding are removed in nodejs/node#25829. This changes uses the alternative available without any functionality change. * chore: roll node
|
/trop run backport-to 5-0-x |
|
The backport process for this PR has been manually initiated, |
|
I was unable to backport this PR to "5-0-x" cleanly; |
…17247) * refactor: load electron builtin modules with process._linkedBinding NODE_BUILTING_MODULE_CONTEXT_AWARE and process.binding are removed in nodejs/node#25829. This changes uses the alternative available without any functionality change. * chore: roll node
* fix: backport boringssl patches for node compat * refactor: prevent node macros from overriding base (#17178) * fix: backport boring ssl patch OPENSSL_clear_free * refactor: load electron builtin modules with process._linkedBinding (#17247) * refactor: load electron builtin modules with process._linkedBinding NODE_BUILTING_MODULE_CONTEXT_AWARE and process.binding are removed in nodejs/node#25829. This changes uses the alternative available without any functionality change. * chore: roll node * fix: add boringssl backport to support node upgrade * fix: Update node_includes.h, add DCHECK macros * fix: Update node Debug Options parser usage * fix: Fix asar setup * fix: using v8Util in isolated context * fix: make "process" available in preload scripts * fix: use proper options parser and remove setting of _breakFirstLine _breakFirstLine was being set on the process, but that has changed in node 12 and so is no longer needed. Node will handle it properly when --inspect-brk is provided * fix: process.binding => _linkedBinding in sandboxed isolated preload * chore: update node dep sha * fix: make original-fs work with streams
Description of Change
NODE_BUILTIN_MODULE_CONTEXT_AWAREandprocess.bindingare removed in nodejs/node#25829. This change adopts the alternative available without any functionality change.Relevant electron/node PR: electron/node#95
Checklist
npm testpassesRelease Notes
Notes: no-notes