Closed ericvergnaud closed 9 months ago
Closing, after digging a bit, it seems these are expressed in terms of the WebAssembly JS API, not in terms of the JS language.
To clarify, these define the behavioural methods of the JavaScript meta object protocol as specified by ECMAscript.
The MVP-JS.md contains the following paragraph:
In the above, it's unclear whether these operations can be invoked from the wrapper itself or from the JS Object API
If the former, then there is a need to describe how one would even know that the wrapper is a wrapper once the object starts being circulated in application code (and if they do know, then how useful are these methods ?).
If the latter, then there might be a few inaccuracies in the list. For example, given a JS value
obj
, there is noobj.GetPrototypeOf()
operation on a JS object, rather one needs to callObject.getPrototypeOf(obj)
.I'll happily submit a PR to fix the latter if it's the intent.