GeezerVison is showing github.com — src: condense experimental warning message · nodejs/node@5544ce4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/util.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -221,8 +221,7 @@ function slowCases(enc) { |
221 | 221 |
|
222 | 222 | function emitExperimentalWarning(feature) { |
223 | 223 | if (experimentalWarnings.has(feature)) return; |
224 | | - const msg = `${feature} is an experimental feature. This feature could ` + |
225 | | - 'change at any time'; |
| 224 | + const msg = `${feature} is an experimental feature and might change at any time`; |
226 | 225 | experimentalWarnings.add(feature); |
227 | 226 | process.emitWarning(msg, 'ExperimentalWarning'); |
228 | 227 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_process_events.cc +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -92,8 +92,7 @@ Maybe<bool> ProcessEmitExperimentalWarning(Environment* env, |
92 | 92 |
|
93 | 93 | experimental_warnings.insert(warning); |
94 | 94 | std::string message(warning); |
95 | | - message.append( |
96 | | - " is an experimental feature. This feature could change at any time"); |
| 95 | + message.append(" is an experimental feature and might change at any time"); |
97 | 96 | return ProcessEmitWarningGeneric(env, message.c_str(), "ExperimentalWarning"); |
98 | 97 | } |
99 | 98 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/common/measure-memory.js +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -43,9 +43,10 @@ function assertSingleDetailedShape(result) { |
43 | 43 | } |
44 | 44 |
|
45 | 45 | 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 | + ); |
49 | 50 | } |
50 | 51 |
|
51 | 52 | module.exports = { |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-vfs.js +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,8 @@ throws(() => require(vfsFile), { code: 'MODULE_NOT_FOUND' }); |
34 | 34 |
|
35 | 35 | common.expectWarning( |
36 | 36 | '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 | +); |
38 | 39 |
|
39 | 40 | process.on('warning', common.mustCall()); |
40 | 41 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/wasi/test-wasi-symlinks.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,8 +5,7 @@ const path = require('path'); |
5 | 5 |
|
6 | 6 | if (process.argv[2] === 'wasi-child') { |
7 | 7 | common.expectWarning('ExperimentalWarning', |
8 | | - 'WASI is an experimental feature. This feature could ' + |
9 | | - 'change at any time'); |
| 8 | + 'WASI is an experimental feature and might change at any time'); |
10 | 9 |
|
11 | 10 | const { WASI } = require('wasi'); |
12 | 11 | const wasmDir = path.join(__dirname, 'wasm'); |
|
Collapse file
Copy file name to clipboardExpand all lines: test/wasi/test-wasi.js +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,8 +8,7 @@ if (process.argv[2] === 'wasi-child') { |
8 | 8 | const path = require('path'); |
9 | 9 |
|
10 | 10 | common.expectWarning('ExperimentalWarning', |
11 | | - 'WASI is an experimental feature. This feature could ' + |
12 | | - 'change at any time'); |
| 11 | + 'WASI is an experimental feature and might change at any time'); |
13 | 12 |
|
14 | 13 | const { WASI } = require('wasi'); |
15 | 14 | tmpdir.refresh(); |
|