diff --git a/lib/internal/util.js b/lib/internal/util.js index 4f74f912936611..f313ab378efc1e 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -224,8 +224,7 @@ function slowCases(enc) { function emitExperimentalWarning(feature) { if (experimentalWarnings.has(feature)) return; - const msg = `${feature} is an experimental feature. This feature could ` + - 'change at any time'; + const msg = `${feature} is an experimental feature and might change at any time.`; experimentalWarnings.add(feature); process.emitWarning(msg, 'ExperimentalWarning'); } diff --git a/src/node_process_events.cc b/src/node_process_events.cc index 944b0605b148b7..ef2eff6333dda6 100644 --- a/src/node_process_events.cc +++ b/src/node_process_events.cc @@ -93,7 +93,7 @@ Maybe ProcessEmitExperimentalWarning(Environment* env, experimental_warnings.insert(warning); std::string message(warning); message.append( - " is an experimental feature. This feature could change at any time"); + " is an experimental feature and might change at any time."); return ProcessEmitWarningGeneric(env, message.c_str(), "ExperimentalWarning"); } diff --git a/test/common/measure-memory.js b/test/common/measure-memory.js index a42f6344268d12..82b3ca61d14f05 100644 --- a/test/common/measure-memory.js +++ b/test/common/measure-memory.js @@ -43,9 +43,10 @@ function assertSingleDetailedShape(result) { } function expectExperimentalWarning() { - common.expectWarning('ExperimentalWarning', - 'vm.measureMemory is an experimental feature. ' + - 'This feature could change at any time'); + common.expectWarning( + 'ExperimentalWarning', + 'vm.measureMemory is an experimental feature and might change at any time' + ); } module.exports = { diff --git a/test/parallel/test-vfs.js b/test/parallel/test-vfs.js index c4842be3a839d0..84e77f4bd58cd8 100644 --- a/test/parallel/test-vfs.js +++ b/test/parallel/test-vfs.js @@ -34,7 +34,8 @@ throws(() => require(vfsFile), { code: 'MODULE_NOT_FOUND' }); common.expectWarning( 'ExperimentalWarning', - 'Module._stat is an experimental feature. This feature could change at any time'); + 'Module._stat is an experimental feature and might change at any time' +); process.on('warning', common.mustCall());