Commit e576a7f 1 parent b200a5f commit e576a7f Copy full SHA for e576a7f
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments