[webkit-changes] [WebKit/WebKit] 551709: [WebIDL] A default value = {} in a dictionary is n...
Dan Glastonbury
noreply at github.com
Sat Sep 3 16:46:22 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 551709dd217f5d82012f4674833a1979253d94bf
https://github.com/WebKit/WebKit/commit/551709dd217f5d82012f4674833a1979253d94bf
Author: Dan Glastonbury <djg at apple.com>
Date: 2022-09-03 (Sat, 03 Sep 2022)
Changed paths:
M Source/WebCore/bindings/scripts/IDLParser.pm
M Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
M Source/WebCore/bindings/scripts/test/TestObj.idl
Log Message:
-----------
[WebIDL] A default value = {} in a dictionary is not supported
https://bugs.webkit.org/show_bug.cgi?id=232656
rdar://problem/85238647
Reviewed by Sam Weinig.
* Source/WebCore/bindings/scripts/IDLParser.pm:
(parseDefaultValue): Accept = {} but return undef, resulting in
the current behavior when no default is specified.
* Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp: Updated
* Source/WebCore/bindings/scripts/test/TestObj.idl:
Added test cases for dictionary attributes with default and
optional dictionary to operation with default.
Canonical link: https://commits.webkit.org/254138@main
More information about the webkit-changes
mailing list