Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
console : remove diagnostic information output
  • Loading branch information
Wandalen authored and Trott committed Aug 15, 2017
commit e10a6dd3423289a841c3a66aae811b3245c0aff7
2 changes: 0 additions & 2 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@
configurable: true,
enumerable: false,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These changes need to be semver-major as this might break user code, although hopefully very rarely.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense.

get: function() {
NativeModule.require('console').log( 'console get' );
if (!console) {
console = (originalConsole === undefined) ?
NativeModule.require('console') :
Expand All @@ -287,7 +286,6 @@
return console;
},
set: function(customConsole) {
NativeModule.require('console').log( 'console set' );
Object.defineProperty(global, 'console', {
configurable: true,
writable: true,
Expand Down