Re: New Web IDL constructor syntax

2019-09-13 Thread Boris Zbarsky
On 9/13/19 3:54 AM, Christopher Mills wrote: I've updated the MDN WebIDL guide to include a section on the new syntax: Chris, Thank you! -Boris ___ dev-platform mailing list dev-platform@lists.mozilla.org

Re: New Web IDL constructor syntax

2019-09-13 Thread Christopher Mills
Thanks Boris. I've updated the MDN WebIDL guide to include a section on the new syntax: https://developer.mozilla.org/en-US/docs/MDN/Contribute/Howto/Write_an_API_reference/Information_contained_in_a_WebIDL_file#New_constructor_syntax (and the new Chrome-only syntax you talked about in your

New Web IDL constructor syntax

2019-09-12 Thread Boris Zbarsky
As of today, the syntax for Web IDL constructors no longer involves an extended attribute on the interface. There's now something that looks more like a method named "constructor" with no explicitly-defined return type. So this: [Constructor(DOMString str)] interface MyInterface {}; is