summaryrefslogtreecommitdiff
path: root/lib/internal/bootstrap/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/bootstrap/node.js')
-rw-r--r--lib/internal/bootstrap/node.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js
index bb07bee6f4..86c0cf7aaf 100644
--- a/lib/internal/bootstrap/node.js
+++ b/lib/internal/bootstrap/node.js
@@ -180,10 +180,10 @@ function startup() {
}
// TODO(joyeecheung): move this down further to get better snapshotting
- if (getOptionValue('[has_experimental_policy]')) {
+ const experimentalPolicy = getOptionValue('--experimental-policy');
+ if (experimentalPolicy) {
process.emitWarning('Policies are experimental.',
'ExperimentalWarning');
- const experimentalPolicy = getOptionValue('--experimental-policy');
const { pathToFileURL, URL } = NativeModule.require('url');
// URL here as it is slightly different parsing
// no bare specifiers for now