| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,6 @@ const { | |||
| 4 | 4 | ArrayPrototypeShift, | |
| 5 | 5 | FunctionPrototype, | |
| 6 | 6 | Number, | |
| 7 | - ObjectCreate, | ||
| 8 | 7 | SafeMap, | |
| 9 | 8 | } = primordials; | |
| 10 | 9 | const { AsyncResource } = require('async_hooks'); | |
@@ -16,7 +15,10 @@ const { | |||
| 16 | 15 | } = require('internal/errors'); | |
| 17 | 16 | const { getOptionValue } = require('internal/options'); | |
| 18 | 17 | const { TapStream } = require('internal/test_runner/tap_stream'); | |
| 19 | - const { createDeferredPromise } = require('internal/util'); | ||
| 18 | + const { | ||
| 19 | + createDeferredPromise, | ||
| 20 | + kEmptyObject, | ||
| 21 | + } = require('internal/util'); | ||
| 20 | 22 | const { isPromise } = require('internal/util/types'); | |
| 21 | 23 | const { isUint32 } = require('internal/validators'); | |
| 22 | 24 | const { cpus } = require('os'); | |
@@ -198,7 +200,7 @@ class Test extends AsyncResource { | |||
| 198 | 200 | } | |
| 199 | 201 | ||
| 200 | 202 | if (options === null || typeof options !== 'object') { | |
| 201 | - options = ObjectCreate(null); | ||
| 203 | + options = kEmptyObject; | ||
| 202 | 204 | } | |
| 203 | 205 | ||
| 204 | 206 | let parent = this; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments