| 07:09 | <Jack Works> | https://github.com/tc39/proposal-compartments/pull/78/ I tried to implement this change but I found it is invalid |
| 07:10 | <Jack Works> | the referral parts goes away |
| 15:20 | <Kris Kowal> | At the last SES meeting, we agreed that I’d add a non-normative note that the "options bag" is passed as this to the hooks, so you can use this.referrer in an importHook. |
| 15:24 | <Jack Works> | At the last SES meeting, we agreed that I’d add a non-normative note that the "options bag" is passed as |
| 15:24 | <Jack Works> | Proxy handler supports sharing between multiple proxy |
| 15:25 | <Jack Works> | And it's real target is given by the first argument |
| 15:25 | <Jack Works> | If this design requires different object instance for each module, it will be a performance cliff |
| 15:52 | <Kris Kowal> | I’ve been unable to convince Caridy that referrer should be explicitly mentioned. He’s quite adamant about leaving it to user code. |
| 15:52 | <Kris Kowal> | Caridy does accept that the hooks themselves cannot be per-module closures. |
| 15:54 | <Kris Kowal> | In any case, Caridy is the one among us who needs to be convinced. In our last SES call, Caridy convinced Mark and me at least that his design does not limit expressivity. |
| 16:09 | <nicolo-ribaudo> | The middle ground between Caridy's and Jack's positions is to use `new Module(source, handler, thisArg/context)`, rather than mixing the handler and the thisArg in the same parameter. This also feels cleaner, since we have a clearly separation between "an object with clearly defined properties" and "something that the user can use as they wish" |
| 16:10 | <nicolo-ribaudo> | (I propose it as a middle ground to not mention the referrer while still reusing the same handler object every time, but it also happens to be my favourite design) |
| 19:31 | <littledan> | If we go that way, my bikeshed on top of that would be to pass context as an argument rather than this. |
| 19:32 | <littledan> | reusing handlers seems useful, though I can accept that it's less clean in some sense or other than making different closures each time |