File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 3
3
const list = require ( 'internal/bootstrap/cache' ) ;
4
4
const {
5
5
isMainThread
6
- } = require ( 'internal/worker ' ) ;
6
+ } = require ( 'worker_threads ' ) ;
7
7
8
8
for ( const key of list . cachableBuiltins ) {
9
9
if ( ! isMainThread && key === 'trace_events' ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const {
10
10
getCodeCache, compileFunction
11
11
} = internalBinding ( 'native_module' ) ;
12
12
const { hasTracing, hasInspector } = process . binding ( 'config' ) ;
13
- const { getOptionValue } = require ( 'internal/options' ) ;
14
13
15
14
// Modules with source code compiled in js2c that
16
15
// cannot be compiled with the code cache.
@@ -64,10 +63,6 @@ if (!process.versions.openssl) {
64
63
) ;
65
64
}
66
65
67
- if ( ! getOptionValue ( '--experimental-worker' ) ) {
68
- cannotUseCache . push ( 'worker_threads' ) ;
69
- }
70
-
71
66
const cachableBuiltins = [ ] ;
72
67
for ( const id of NativeModule . map . keys ( ) ) {
73
68
if ( id . startsWith ( 'internal/deps' ) ) {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- // Flags: --expose-internals --experimental-worker
3
+ // Flags: --expose-internals
4
4
// This test verifies that if the binary is compiled with code cache,
5
5
// and the cache is used when built in modules are compiled.
6
6
// Otherwise, verifies that no cache is used when compiling builtins.
Original file line number Diff line number Diff line change 10
10
const common = require ( '../common' ) ;
11
11
12
12
if ( ! common . isMainThread ) {
13
- common . skip ( 'Implicit changes to the builtin list from the test runner ' ) ;
13
+ common . skip ( 'Cannot test the existence of --expose-internals from worker ' ) ;
14
14
}
15
15
16
16
const assert = require ( 'assert' ) ;
@@ -69,6 +69,7 @@ const expectedPublicModules = new Set([
69
69
'util' ,
70
70
'v8' ,
71
71
'vm' ,
72
+ 'worker_threads' ,
72
73
'zlib'
73
74
] ) ;
74
75
You can’t perform that action at this time.
0 commit comments