GeezerVison is showing github.com — esm: fix import assertion warning · nodejs/node@5b94e2b
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/modules/esm/assert.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -62,8 +62,8 @@ function validateAssertions(url, format, |
62 | 62 | if (!alreadyWarned && ObjectKeys(importAssertions).length !== 0) { |
63 | 63 | alreadyWarned = true; |
64 | 64 | process.emitWarning( |
65 | | - 'Import assertions are not a stable feature of the JavaScript language, ' + |
66 | | - 'avoid relying on their current behavior and syntax as those might change ' + |
| 65 | + 'Import assertions are not a stable feature of the JavaScript language. ' + |
| 66 | + 'Avoid relying on their current behavior and syntax as those might change ' + |
67 | 67 | 'in a future version of Node.js.', |
68 | 68 | 'ExperimentalWarning', |
69 | 69 | ); |
|
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-import-assertion-errors.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,8 +7,8 @@ const jsonModuleDataUrl = 'data:application/json,""'; |
7 | 7 |
|
8 | 8 | common.expectWarning( |
9 | 9 | 'ExperimentalWarning', |
10 | | - 'Import assertions are not a stable feature of the JavaScript language, ' + |
11 | | - 'avoid relying on their current behavior and syntax as those might change ' + |
| 10 | + 'Import assertions are not a stable feature of the JavaScript language. ' + |
| 11 | + 'Avoid relying on their current behavior and syntax as those might change ' + |
12 | 12 | 'in a future version of Node.js.' |
13 | 13 | ); |
14 | 14 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-import-assertion-errors.mjs +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,8 +6,8 @@ const jsonModuleDataUrl = 'data:application/json,""'; |
6 | 6 |
|
7 | 7 | expectWarning( |
8 | 8 | 'ExperimentalWarning', |
9 | | - 'Import assertions are not a stable feature of the JavaScript language, ' + |
10 | | - 'avoid relying on their current behavior and syntax as those might change ' + |
| 9 | + 'Import assertions are not a stable feature of the JavaScript language. ' + |
| 10 | + 'Avoid relying on their current behavior and syntax as those might change ' + |
11 | 11 | 'in a future version of Node.js.' |
12 | 12 | ); |
13 | 13 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-import-assertion-validation.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,8 +8,8 @@ const { validateAssertions } = require('internal/modules/esm/assert'); |
8 | 8 |
|
9 | 9 | common.expectWarning( |
10 | 10 | 'ExperimentalWarning', |
11 | | - 'Import assertions are not a stable feature of the JavaScript language, ' + |
12 | | - 'avoid relying on their current behavior and syntax as those might change ' + |
| 11 | + 'Import assertions are not a stable feature of the JavaScript language. ' + |
| 12 | + 'Avoid relying on their current behavior and syntax as those might change ' + |
13 | 13 | 'in a future version of Node.js.' |
14 | 14 | ); |
15 | 15 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-import-assertion-warning.mjs +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,8 +2,8 @@ import { expectWarning } from '../common/index.mjs'; |
2 | 2 |
|
3 | 3 | expectWarning( |
4 | 4 | 'ExperimentalWarning', |
5 | | - 'Import assertions are not a stable feature of the JavaScript language, ' + |
6 | | - 'avoid relying on their current behavior and syntax as those might change ' + |
| 5 | + 'Import assertions are not a stable feature of the JavaScript language. ' + |
| 6 | + 'Avoid relying on their current behavior and syntax as those might change ' + |
7 | 7 | 'in a future version of Node.js.' |
8 | 8 | ); |
9 | 9 |
|
|