[webidl] Object.getPrototypeOf(NodeFilter) should be Function.prototype, not Object.prototype (#96)

http://heycam.github.io/webidl/#interface-object

> The internal [[Prototype]] property of an interface object for a callback interface must be the Object.prototype object.

This doesn't match Edge and Gecko, where `Object.getPrototypeOf(NodeFilter) === Function.prototype` holds true. It looks like this could be fixed by using the same language as for non-callback interfaces that don't inherit from any other interface:

> If the interface doesn't inherit from any other interface, the value of [[Prototype]] is %FunctionPrototype%

This was discussed in https://github.com/heycam/webidl/issues/83 and I just noticed it in https://github.com/whatwg/dom/issues/186#issuecomment-193709823

https://github.com/heycam/webidl/issues/78 is also more general issue about the interface objects of callback interface objects.

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/96

Received on Tuesday, 8 March 2016 10:39:24 UTC