Commit 06646e1
vm: use import attributes instead of import assertions
The old import assertions proposal has been
renamed to "import attributes" with the following major changes:
1. The keyword is now `with` instead of `assert`.
2. Unknown assertions cause an error rather than being ignored.
This PR updates the documentation to encourage folks to use the new
syntax, and add aliases to preserve backward compatibility.
PR-URL: #50141
Backport-PR-URL: #51136
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>1 parent a193be3 commit 06646e1Copy full SHA for 06646e1
File tree
Expand file treeCollapse file tree
1 file changed
+6
-6
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+6
-6
lines changedOpen diff view settings
Collapse file
+6-6Lines changed: 6 additions & 6 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
103 | 103 | |
104 | 104 | |
105 | 105 | |
106 | | - |
| 106 | + |
107 | 107 | |
108 | 108 | |
109 | 109 | |
| ||
635 | 635 | |
636 | 636 | |
637 | 637 | |
638 | | - |
| 638 | + |
639 | 639 | |
640 | 640 | |
641 | 641 | |
| ||
1032 | 1032 | |
1033 | 1033 | |
1034 | 1034 | |
1035 | | - |
| 1035 | + |
1036 | 1036 | |
1037 | 1037 | |
1038 | 1038 | |
| ||
1258 | 1258 | |
1259 | 1259 | |
1260 | 1260 | |
1261 | | - |
| 1261 | + |
1262 | 1262 | |
1263 | 1263 | |
1264 | 1264 | |
| ||
1359 | 1359 | |
1360 | 1360 | |
1361 | 1361 | |
1362 | | - |
| 1362 | + |
1363 | 1363 | |
1364 | 1364 | |
1365 | 1365 | |
| ||
1441 | 1441 | |
1442 | 1442 | |
1443 | 1443 | |
1444 | | - |
| 1444 | + |
1445 | 1445 | |
1446 | 1446 | |
1447 | 1447 | |
|
0 commit comments