| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 018ec32 commit 4aee98b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ const { | |||
| 5 | 5 | FunctionPrototypeBind, | |
| 6 | 6 | ObjectDefineProperty, | |
| 7 | 7 | ObjectKeys, | |
| 8 | + ObjectPrototypeHasOwnProperty, | ||
| 8 | 9 | } = primordials; | |
| 9 | 10 | ||
| 10 | 11 | let session; | |
@@ -43,7 +44,7 @@ function wrapConsole(consoleFromNode, consoleFromVM) { | |||
| 43 | 44 | // If global console has the same method as inspector console, | |
| 44 | 45 | // then wrap these two methods into one. Native wrapper will preserve | |
| 45 | 46 | // the original stack. | |
| 46 | - if (consoleFromNode.hasOwnProperty(key)) { | ||
| 47 | + if (ObjectPrototypeHasOwnProperty(consoleFromNode, key)) { | ||
| 47 | 48 | consoleFromNode[key] = FunctionPrototypeBind( | |
| 48 | 49 | consoleCall, | |
| 49 | 50 | consoleFromNode, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments