- From: Alexey Shvayka <notifications@github.com>
- Date: Thu, 11 Mar 2021 02:20:08 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 11 March 2021 10:20:20 UTC
@annevk `for/in` indeed calls [`WindowProxy`'s `[[OwnPropertyKeys]]`](https://html.spec.whatwg.org/#windowproxy-ownpropertykeys) first, but then [goes up the prototype chain](https://tc39.es/ecma262/#sec-for-in-iterator-objects) for same-origin windows. WebKit, and I believe other runtimes as well, accept additional parameter when implementing `[[OwnPropertyKeys]]` so non-enumerable property names (for `Object.keys` and `for/in`) can be rejected without calling `[[GetOwnProperty]]`. -- 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/pull/964#issuecomment-796629477
Received on Thursday, 11 March 2021 10:20:20 UTC