| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8e5c8a3 commit 9dd918b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,4 +16,9 @@ const context = vm.createContext(sandbox); | |||
| 16 | 16 | const code = 'Object.getOwnPropertyDescriptor(this, "prop");'; | |
| 17 | 17 | const result = vm.runInContext(code, context); | |
| 18 | 18 | ||
| 19 | - assert.strictEqual(result, descriptor); | ||
| 19 | + // Ref: https://github.com/nodejs/node/issues/11803 | ||
| 20 | + | ||
| 21 | + assert.deepStrictEqual(Object.keys(result), Object.keys(descriptor)); | ||
| 22 | + for (const prop of Object.keys(result)) { | ||
| 23 | + assert.strictEqual(result[prop], descriptor[prop]); | ||
| 24 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments