Skip to content

Conversation

@nornagon
Copy link
Contributor

Description of Change

These redefinitions meant that any Electron file that had #include "node_includes.h" would be unable to use CHECK, DCHECK, etc. from base/. This change makes it so that Electron code will use Chromium's logging macros, instead of Node's, but keep Node using Node's logging macros.

push_macro and pop_macro are non-standard C++, but are used by Chromium occasionally.

Checklist

Release Notes

Notes: no-notes

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Feb 28, 2019
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@deepak1556
Copy link
Member

deepak1556 commented Feb 28, 2019

This will unblock fixing #17090 , the ordering of atom/common/node_includes.h won't be a problem now.

Copy link
Contributor

@nitsakh nitsakh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nornagon nornagon merged commit 2adbc78 into master Mar 1, 2019
@release-clerk
Copy link

release-clerk bot commented Mar 1, 2019

No Release Notes

@nornagon nornagon deleted the node-includes branch March 1, 2019 18:04
@zcbenz zcbenz added target/5-0-x and removed new-pr 🌱 PR opened recently labels Apr 10, 2019
@zcbenz
Copy link
Contributor

zcbenz commented Apr 10, 2019

/trop run backport-to 5-0-x

@trop
Copy link
Contributor

trop bot commented Apr 10, 2019

The backport process for this PR has been manually initiated,
sending your 1's and 0's to "5-0-x" here we go! :D

@trop
Copy link
Contributor

trop bot commented Apr 10, 2019

I have automatically backported this PR to "5-0-x", please check out #17739

@trop trop bot added the in-flight/5-0-x label Apr 10, 2019
ckerr pushed a commit that referenced this pull request Apr 16, 2019
* 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
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.

7 participants