Skip to content

Commit bf6aa53

Browse files
avivkellermarco-ippolito
authored andcommitted
process: unify experimental warning messages
PR-URL: #53704 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent ead05aa commit bf6aa53

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/internal/process/pre_execution.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const {
3333
exposeLazyInterfaces,
3434
defineReplaceableLazyAttribute,
3535
setupCoverageHooks,
36+
emitExperimentalWarning,
3637
} = require('internal/util');
3738

3839
const {
@@ -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

710710
function 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
}

0 commit comments

Comments
 (0)