We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f2ea6 commit 7339630Copy full SHA for 7339630
design/mvp/Explainer.md
@@ -988,7 +988,7 @@ Notes:
988
* In lieu of an existing standard JS representation for `variant`, the JS API
989
would need to define its own custom binding built from objects. As a sketch,
990
the JS values accepted by `(variant (case "a" u32) (case "b" string))` could
991
- include `{ a: 42 }` and `{ b: "hi" }`.
+ include `{ tag: 'a', value: 42 }` and `{ tag: 'b', value: "hi" }`.
992
* For `union` and `option`, when Web IDL doesn't support particular type
993
combinations (e.g., `(option (option u32))`), the JS API would fall back to
994
the JS API of the unspecialized `variant` (e.g.,
0 commit comments