Replace serializers with toJSON and [Default] extended attribute

Confirmed Issue #12458893 • Assigned to Travis L.

Details

Author
Tobie L.
Created
Jun 23, 2017
Privacy
This issue is public.
Standard affected
Web IDL

Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

We just removed serializers from WebIDL and allowed editors to specify toJSON operations directly instead (WebIDL treated toJSON as a reserved identifier up until now).

To deal with common cases, we added a new [Default] extended attribute which triggers the default toJSON operation that behaves similarly to how serializers={attributes} or serializers={attributes, inherit} used to.

All serializer-related productions were removed from the WebIDL grammar. In particular the following non-terminals:

  • Serializer
    • Serializer was also removed from the rhs expression of InterfaceMember.
  • SerializerRest
  • OperationRest
  • SerializationPattern
  • SerializationPatternMap
  • SerializationPatternList

and the following terminals:

  • serializer in ArgumentNameKeyword.

As usual, please feel free to reach out if anything needs clarification or if you have questions.

Thanks!

Attachments

0 attachments

    Comments and activity

    • Changed Steps to Reproduce

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Travis L.”

      Changed Title from “Replace serializers with toJSON and [Default] extended attribute” to “Replace serializers with toJSON and [Default] extended attribute”

      Changed Status to “Confirmed”

    • Awesome, thanks! We’ll get this updated shortly.

    You need to sign in to your Microsoft account to add a comment.

    Sign in