File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 44 ArrayPrototypeShift,
55 FunctionPrototype,
66 Number,
7- ObjectCreate,
87 SafeMap,
98} = primordials ;
109const { AsyncResource } = require ( 'async_hooks' ) ;
@@ -16,7 +15,10 @@ const {
1615} = require ( 'internal/errors' ) ;
1716const { getOptionValue } = require ( 'internal/options' ) ;
1817const { TapStream } = require ( 'internal/test_runner/tap_stream' ) ;
19- const { createDeferredPromise } = require ( 'internal/util' ) ;
18+ const {
19+ createDeferredPromise,
20+ kEmptyObject,
21+ } = require ( 'internal/util' ) ;
2022const { isPromise } = require ( 'internal/util/types' ) ;
2123const { isUint32 } = require ( 'internal/validators' ) ;
2224const { cpus } = require ( 'os' ) ;
@@ -198,7 +200,7 @@ class Test extends AsyncResource {
198200 }
199201
200202 if ( options === null || typeof options !== 'object' ) {
201- options = ObjectCreate ( null ) ;
203+ options = kEmptyObject ;
202204 }
203205
204206 let parent = this ;
You can’t perform that action at this time.
0 commit comments