10:33
<nicolo-ribaudo>
Do we have a list of places to look at to see how host hooks are used, or is the HTML spec the only host with a clearly defined ecma262 integration? I'm curious to see what hosts save in a Module Record's [[HostDefined]] slot.
11:46
<littledan>
HTML is the only JS embedder that I know of that has a fully textual spec for how the hooks are used, but other JS embedders make explicit efforts to have behavior which could've been based on hooks.
11:49
<littledan>
I feel like constructs like [[HostDefined]] are really just there for the fully textual spec crowd; if you're just thinking about following the JS spec in a hand-wavy way, it's enough to say that each thing X in JS has a set of fields Y which are vaguely associated with it (and indeed web specs sometimes talk this way, at least historically, and that wouldn't even be so bad if we thought of "vaguely associated" as being via, e.g., a WeakMap)
11:49
<littledan>
WeakMap modulo, you know, the category error that spec objects and JS objects must never meet