Re: [heycam/webidl] String marshaling/interop for wasm and asm.js scenarios (#716)

The immutability isn't enforced by the runtime, it's a promise from the user. So if they violate it there's no guarantee the string will contain what they want. It's just like how many runtimes have 'readonly' fields that you can mutate via taking addresses or using reflection if you insist on being naughty.

I can imagine that not being acceptable for some reasons but it seems like it could be an acceptable tradeoff. Some runtimes would just copy at construction time and some wouldn't.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/716#issuecomment-487231208

Received on Friday, 26 April 2019 23:31:28 UTC