Re: [heycam/webidl] Normative: Match ECMA‑262 function property enumeration order (#914)

@verwaest The proposal sets up `Function.prototype.{arguments,caller}` as getters ([spec](https://github.com/claudepache/es-legacy-function-reflection/blob/master/spec.md#get-functionprototypecaller)), so they can return `null` or real caller or even throw a `TypeError` depending on a holder (receiver).

One important bit of the proposal I kinda hope V8 would implement is returning `null` for (async) generators to match with JSC: we can't return real caller for them and it seems web-compatible.

-- 
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/914#issuecomment-925896356

Received on Thursday, 23 September 2021 15:00:11 UTC