Skip to content

Commit 7be71bb

Browse files
romandevsvgeesus
authored andcommitted
Replace serializers with "[Default] toJSON()"
Match latest WebIDL spec[1]. [1] https://heycam.github.io/webidl/#Default Fixes #200.
1 parent 1849f8e commit 7be71bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

geometry/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ interface DOMPointReadOnly {
8282

8383
DOMPoint matrixTransform(optional DOMMatrixInit matrix);
8484

85-
serializer = { attribute };
85+
[Default] object toJSON();
8686
};
8787

8888
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
@@ -300,7 +300,7 @@ interface DOMRectReadOnly {
300300
readonly attribute unrestricted double bottom;
301301
readonly attribute unrestricted double left;
302302

303-
serializer = { attribute };
303+
[Default] object toJSON();
304304
};
305305

306306
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
@@ -452,7 +452,7 @@ interface DOMQuad {
452452
[SameObject] readonly attribute DOMPoint p4;
453453
[NewObject] DOMRect getBounds();
454454

455-
serializer = { attribute };
455+
[Default] object toJSON();
456456
};
457457

458458
dictionary DOMQuadInit {
@@ -748,7 +748,7 @@ interface DOMMatrixReadOnly {
748748
[NewObject] Float64Array toFloat64Array();
749749

750750
[Exposed=Window] stringifier;
751-
serializer = { attribute };
751+
[Default] object toJSON();
752752
};
753753

754754
[Constructor(optional (DOMString or sequence<unrestricted double>) init),

0 commit comments

Comments
 (0)