File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -339,9 +339,8 @@ Notes:
339
339
validation errors (which coincides with definition of ` URL ` in JS and ` rust-url ` ).
340
340
* Validation requires any exported ` sortidx ` to have a valid ` externdesc `
341
341
(which disallows core sorts other than ` core module ` ). When the optional
342
- ` externdesc ` immediate is present, validation requires it to be equal to
343
- the inferred ` externdesc ` of the ` sortidx ` (where equality judges a type and
344
- the ` typeidx ` of an export of that type (via ` eq ` or ` sub ` ) equivalent).
342
+ ` externdesc ` immediate is present, validation requires it to be a supertype
343
+ of the inferred ` externdesc ` of the ` sortidx ` .
345
344
* The ` name ` fields of ` externname ` must be unique among imports and exports,
346
345
respectively. The ` URL ` fields of ` externname ` (that are present) must
347
346
independently unique among imports and exports, respectively.
Original file line number Diff line number Diff line change @@ -1313,9 +1313,10 @@ exported).
1313
1313
Validation of ` export ` requires that all transitive uses of resource types in
1314
1314
the types of exported functions or values refer to resources that were either
1315
1315
imported or exported (concretely, via the type index introduced by an ` import `
1316
- or ` export ` ). The optional ` <externdesc>? ` in ` export ` can be used to ascribe
1317
- an equivalent-but-different type to an exported definition, allowing a private
1318
- type definition to be replaced with a public (exported) type definition.
1316
+ or ` export ` ). The optional ` <externdesc>? ` in ` export ` can be used to
1317
+ explicitly ascribe a type to an export which is validated to be a supertype of
1318
+ the definition's type, thereby allowing a private (non-exported) type
1319
+ definition to be replaced with a public (exported) type definition.
1319
1320
1320
1321
For example, in the following component:
1321
1322
``` wasm
You can’t perform that action at this time.
0 commit comments