mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Allow undefined
variants in IDL unions (#37042)
Testing: Includes a test which ensures that unions with a `undefined` variant compile Fixes https://github.com/servo/servo/issues/28679 Part of https://github.com/servo/servo/issues/30287 --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
9c0c1cf30f
commit
fcc391d852
2 changed files with 37 additions and 10 deletions
|
@ -627,3 +627,6 @@ dictionary NotUsedAnyWhereElse {};
|
|||
dictionary RecordFieldWithUnionInside {
|
||||
record<USVString, (USVString or NotUsedAnyWhereElse)> recordWithUnionField;
|
||||
};
|
||||
|
||||
// https://github.com/servo/servo/issues/28679
|
||||
typedef (USVString or undefined) UnionWithUndefinedVariant;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue