Skip to content

Commit 05bc3d6

Browse files
committed
Only despecialize problematic options/unions
1 parent 7339630 commit 05bc3d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

design/mvp/Explainer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,8 @@ Notes:
992992
* For `union` and `option`, when Web IDL doesn't support particular type
993993
combinations (e.g., `(option (option u32))`), the JS API would fall back to
994994
the JS API of the unspecialized `variant` (e.g.,
995-
`(variant (case "some" (variant (case "some" u32) (case "none"))) (case "none"))`).
995+
`(variant (case "some" (option u32)) (case "none"))`, despecializing only
996+
the problematic outer `option`).
996997
* The forthcoming addition of [resource and handle types] would additionally
997998
allow coercion to and from the remaining Symbol and Object JavaScript value
998999
types.

0 commit comments

Comments
 (0)