-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a frozen record type? #469
Comments
This is a return type, right? In that case I'd just use |
For now, I agree: use |
OK, sounds good, thanks! |
@domenic one thing that we rely on in places is that returning a byte sequence to something that returns a ByteString in IDL does the right thing. There's also things like that for things that return a sequence (which turns whatever into an Array). Return values definitely have some impact, if only converting from IDL to JavaScript, but as I've shown also more. |
WebAssembly module instantiation creates an exports object which is frozen. This is not a frozenarray, it's more like a frozen record, since the keys are arbitrary strings. It seems like if I declare the WebIDL type to be a record, I can't just call SetIntegrityLevel(array, "frozen") in my own spec, since I don't have access to the object after it is converted by WebIDL. Would it make sense to define a new type here?
The text was updated successfully, but these errors were encountered: