GeezerVison is showing github.com — process: unify experimental warning messages · nodejs/node@bf6aa53
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,6 +33,7 @@ const { |
33 | 33 | exposeLazyInterfaces, |
34 | 34 | defineReplaceableLazyAttribute, |
35 | 35 | setupCoverageHooks, |
| 36 | + emitExperimentalWarning, |
36 | 37 | } = require('internal/util'); |
37 | 38 |
|
38 | 39 | const { |
@@ -569,8 +570,7 @@ function initializePermission() { |
569 | 570 | }; |
570 | 571 | // Guarantee path module isn't monkey-patched to bypass permission model |
571 | 572 | ObjectFreeze(require('path')); |
572 | | - process.emitWarning('Permission is an experimental feature', |
573 | | - 'ExperimentalWarning'); |
| 573 | + emitExperimentalWarning('Permission'); |
574 | 574 | const { has } = require('internal/process/permission'); |
575 | 575 | const warnFlags = [ |
576 | 576 | '--allow-addons', |
@@ -709,8 +709,7 @@ function initializeSourceMapsHandlers() { |
709 | 709 |
|
710 | 710 | function initializeFrozenIntrinsics() { |
711 | 711 | if (getOptionValue('--frozen-intrinsics')) { |
712 | | - process.emitWarning('The --frozen-intrinsics flag is experimental', |
713 | | - 'ExperimentalWarning'); |
| 712 | + emitExperimentalWarning('Frozen intristics'); |
714 | 713 | require('internal/freeze_intrinsics')(); |
715 | 714 | } |
716 | 715 | } |
|