File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- // https://github.com/nodejs/node/blob/1aab13cad9c800f4121c1d35b554b78c1b17bdbd /lib/internal/test_runner/test.js
1
+ // https://github.com/nodejs/node/blob/44aa46d70537d3807bd9255db77f76cd9dea5267 /lib/internal/test_runner/test.js
2
2
3
3
'use strict'
4
4
7
7
ArrayPrototypeShift,
8
8
FunctionPrototype,
9
9
Number,
10
- ObjectCreate,
11
10
SafeMap
12
11
} = require ( '#internal/per_context/primordials' )
13
12
const { AsyncResource } = require ( 'async_hooks' )
@@ -19,7 +18,10 @@ const {
19
18
} = require ( '#internal/errors' )
20
19
const { getOptionValue } = require ( '#internal/options' )
21
20
const { TapStream } = require ( '#internal/test_runner/tap_stream' )
22
- const { createDeferredPromise } = require ( '#internal/util' )
21
+ const {
22
+ createDeferredPromise,
23
+ kEmptyObject
24
+ } = require ( '#internal/util' )
23
25
const { isPromise } = require ( '#internal/util/types' )
24
26
const { isUint32 } = require ( '#internal/validators' )
25
27
const { cpus } = require ( 'os' )
@@ -203,7 +205,7 @@ class Test extends AsyncResource {
203
205
}
204
206
205
207
if ( options === null || typeof options !== 'object' ) {
206
- options = ObjectCreate ( null )
208
+ options = kEmptyObject
207
209
}
208
210
209
211
let parent = this
You can’t perform that action at this time.
0 commit comments