GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — process: unify experimental warning messages · nodejs/node@bf6aa53

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/process
    • pre_execution.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/process/pre_execution.js‎

Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js
+3-4Lines changed: 3 additions & 4 deletions
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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.