File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const {
34
34
exposeLazyInterfaces,
35
35
defineReplaceableLazyAttribute,
36
36
setupCoverageHooks,
37
+ emitExperimentalWarning,
37
38
} = require ( 'internal/util' ) ;
38
39
39
40
const {
@@ -564,8 +565,7 @@ function initializePermission() {
564
565
} ;
565
566
// Guarantee path module isn't monkey-patched to bypass permission model
566
567
ObjectFreeze ( require ( 'path' ) ) ;
567
- process . emitWarning ( 'Permission is an experimental feature' ,
568
- 'ExperimentalWarning' ) ;
568
+ emitExperimentalWarning ( 'Permission' ) ;
569
569
const { has } = require ( 'internal/process/permission' ) ;
570
570
const warnFlags = [
571
571
'--allow-addons' ,
@@ -654,8 +654,7 @@ function initializeSourceMapsHandlers() {
654
654
655
655
function initializeFrozenIntrinsics ( ) {
656
656
if ( getOptionValue ( '--frozen-intrinsics' ) ) {
657
- process . emitWarning ( 'The --frozen-intrinsics flag is experimental' ,
658
- 'ExperimentalWarning' ) ;
657
+ emitExperimentalWarning ( 'Frozen intristics' ) ;
659
658
require ( 'internal/freeze_intrinsics' ) ( ) ;
660
659
}
661
660
}
You can’t perform that action at this time.
0 commit comments