| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4660c1f commit 673c1fd
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -151,7 +151,7 @@ function teardown() { | |||
| 151 | 151 | // Check that the kGroupIndent symbol property is not enumerable | |
| 152 | 152 | { | |
| 153 | 153 | const keys = Reflect.ownKeys(console) | |
| 154 | - .filter((val) => console.propertyIsEnumerable(val)) | ||
| 154 | + .filter((val) => Object.prototype.propertyIsEnumerable.call(console, val)) | ||
| 155 | 155 | .map((val) => val.toString()); | |
| 156 | 156 | assert(!keys.includes('Symbol(groupIndent)'), | |
| 157 | 157 | 'groupIndent should not be enumerable'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,8 +14,8 @@ const { internalBinding } = require('internal/test/binding'); | |||
| 14 | 14 | const TTY = internalBinding('tty_wrap').TTY; | |
| 15 | 15 | ||
| 16 | 16 | { | |
| 17 | - assert.strictEqual(TTY.prototype.propertyIsEnumerable('bytesRead'), false); | ||
| 18 | - assert.strictEqual(TTY.prototype.propertyIsEnumerable('fd'), false); | ||
| 19 | - assert.strictEqual( | ||
| 20 | - TTY.prototype.propertyIsEnumerable('_externalStream'), false); | ||
| 17 | + const ttyIsEnumerable = Object.prototype.propertyIsEnumerable.bind(TTY); | ||
| 18 | + assert.strictEqual(ttyIsEnumerable('bytesRead'), false); | ||
| 19 | + assert.strictEqual(ttyIsEnumerable('fd'), false); | ||
| 20 | + assert.strictEqual(ttyIsEnumerable('_externalStream'), false); | ||
| 21 | 21 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments