Skip to content

Commit d77a0ca

Browse files
committed
src: add missing punctuation to warning
1 parent 916af4e commit d77a0ca

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

lib/internal/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ function slowCases(enc) {
224224

225225
function emitExperimentalWarning(feature) {
226226
if (experimentalWarnings.has(feature)) return;
227-
const msg = `${feature} is an experimental feature. This feature could ` +
228-
'change at any time';
227+
const msg = `${feature} is an experimental feature and might change at any time.`;
229228
experimentalWarnings.add(feature);
230229
process.emitWarning(msg, 'ExperimentalWarning');
231230
}

src/node_process_events.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Maybe<bool> ProcessEmitExperimentalWarning(Environment* env,
9393
experimental_warnings.insert(warning);
9494
std::string message(warning);
9595
message.append(
96-
" is an experimental feature. This feature could change at any time");
96+
" is an experimental feature and might change at any time");
9797
return ProcessEmitWarningGeneric(env, message.c_str(), "ExperimentalWarning");
9898
}
9999

test/common/measure-memory.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ function assertSingleDetailedShape(result) {
4343
}
4444

4545
function expectExperimentalWarning() {
46-
common.expectWarning('ExperimentalWarning',
47-
'vm.measureMemory is an experimental feature. ' +
48-
'This feature could change at any time');
46+
common.expectWarning(
47+
'ExperimentalWarning',
48+
'vm.measureMemory is an experimental feature and might change at any time'
49+
);
4950
}
5051

5152
module.exports = {

test/parallel/test-vfs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ throws(() => require(vfsFile), { code: 'MODULE_NOT_FOUND' });
3434

3535
common.expectWarning(
3636
'ExperimentalWarning',
37-
'Module._stat is an experimental feature. This feature could change at any time');
37+
'Module._stat is an experimental feature and might change at any time'
38+
);
3839

3940
process.on('warning', common.mustCall());
4041

0 commit comments

Comments
 (0)