| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ead05aa commit bf6aa53
1 file changed
| 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 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments