[heycam/webidl] Differences between "normal" platform objects and "normal" JavaScript classes (#226)

Some are mentioned in https://github.com/tc39/proposals/pull/30#issuecomment-252719023 by @domenic:

* enumerable (Web IDL) vs. non-enumerable (conventional for ES)
* statics being functions (Web IDL) vs. methods (conventional for ES)

I believe in Gecko at least typeof will also be different.

This means for instance that https://streams.spec.whatwg.org/ cannot be done in IDL and that https://url.spec.whatwg.org/ expressed in TC39-language would have slightly different behavior.

That seems suboptimal, especially if there's still hope to eventually bridge the chasm somehow.

As a start, having it clearly documented how "normal" platform objects differ from "normal" JavaScript classes would be good.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/226

Received on Monday, 7 November 2016 13:35:04 UTC