Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Commit b111cb1

Browse files
committed
Remove Object.prototype.inspect
I'm not sure if this used to be added by node, but I can't find it anywhere in the docs or code in recent versions. It was also causing the following warning (due to a conflict with util.inspect): ./util.js:77: WARNING - assignment to property inspect of Object.<string,*> found : function (*, boolean=, number=, boolean=): string required: function (this:Object): ? util.inspect = function(object, showHidden, depth, colors) {}; ^ Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
1 parent d801af7 commit b111cb1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
* @author Daniel Wirtz <dcode@dcode.io>
2323
*/
2424

25-
/**
26-
*/
27-
Object.prototype.inspect = function() {};
28-
2925
/**
3026
* @param name
3127
* @return {*}

0 commit comments

Comments
 (0)