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 @@ -33,6 +33,7 @@ const {
3333 exposeLazyInterfaces,
3434 defineReplaceableLazyAttribute,
3535 setupCoverageHooks,
36+ emitExperimentalWarning,
3637} = require ( 'internal/util' ) ;
3738
3839const {
@@ -569,8 +570,7 @@ function initializePermission() {
569570 } ;
570571 // Guarantee path module isn't monkey-patched to bypass permission model
571572 ObjectFreeze ( require ( 'path' ) ) ;
572- process . emitWarning ( 'Permission is an experimental feature' ,
573- 'ExperimentalWarning' ) ;
573+ emitExperimentalWarning ( 'Permission' ) ;
574574 const { has } = require ( 'internal/process/permission' ) ;
575575 const warnFlags = [
576576 '--allow-addons' ,
@@ -709,8 +709,7 @@ function initializeSourceMapsHandlers() {
709709
710710function initializeFrozenIntrinsics ( ) {
711711 if ( getOptionValue ( '--frozen-intrinsics' ) ) {
712- process . emitWarning ( 'The --frozen-intrinsics flag is experimental' ,
713- 'ExperimentalWarning' ) ;
712+ emitExperimentalWarning ( 'Frozen intristics' ) ;
714713 require ( 'internal/freeze_intrinsics' ) ( ) ;
715714 }
716715}
You can’t perform that action at this time.
0 commit comments