[heycam/webidl] Should promise-returning attributes reject in case of wrong this value? (#186)

When a promise-returning attribute getter is called on a wrong this value, it is expected to throw a type error. Promise-returning operations on the other side will return a rejected promise.

I am wondering why attribute getters are not also rejecting.
Although not WebIDL based, https://streams.spec.whatwg.org/#default-reader-closed is doing so for instance.


-- 
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/186

Received on Thursday, 13 October 2016 07:12:13 UTC