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 @@ -30,6 +30,7 @@ const {
30
30
exposeLazyInterfaces,
31
31
defineReplaceableLazyAttribute,
32
32
setupCoverageHooks,
33
+ emitExperimentalWarning,
33
34
} = require ( 'internal/util' ) ;
34
35
35
36
const {
@@ -538,8 +539,7 @@ function initializePermission() {
538
539
} ;
539
540
// Guarantee path module isn't monkey-patched to bypass permission model
540
541
ObjectFreeze ( require ( 'path' ) ) ;
541
- process . emitWarning ( 'Permission is an experimental feature' ,
542
- 'ExperimentalWarning' ) ;
542
+ emitExperimentalWarning ( 'Permission' ) ;
543
543
const { has } = require ( 'internal/process/permission' ) ;
544
544
const warnFlags = [
545
545
'--allow-addons' ,
@@ -628,8 +628,7 @@ function initializeSourceMapsHandlers() {
628
628
629
629
function initializeFrozenIntrinsics ( ) {
630
630
if ( getOptionValue ( '--frozen-intrinsics' ) ) {
631
- process . emitWarning ( 'The --frozen-intrinsics flag is experimental' ,
632
- 'ExperimentalWarning' ) ;
631
+ emitExperimentalWarning ( 'Frozen intristics' ) ;
633
632
require ( 'internal/freeze_intrinsics' ) ( ) ;
634
633
}
635
634
}
You can’t perform that action at this time.
0 commit comments