- From: Alexey Shvayka <notifications@github.com>
- Date: Thu, 23 Sep 2021 07:59:59 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 23 September 2021 15:00:11 UTC
@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