[whatwg/webidl] 'this' and nested steps (Issue #1175)

https://webidl.spec.whatwg.org/#this

It isn't clear how nested steps behave in relation to `this`.

```
The foo() method steps are:

1. It's fine to access [=this=] here.
2. Queue the following steps:
  1. But is it fine to access [=this=] here?
```

It feels like WebIDL could explicitly allow the above, by saying `this` gets its value from the 'closest' [constructor steps](https://webidl.spec.whatwg.org/#constructor-steps), [getter steps](https://webidl.spec.whatwg.org/#getter-steps), [setter steps](https://webidl.spec.whatwg.org/#setter-steps), or [method steps](https://webidl.spec.whatwg.org/#method-steps).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1175
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1175@github.com>

Received on Wednesday, 27 July 2022 13:31:25 UTC