Enable SharedArrayBuffer arguments for TextEncoder.encodeInto() and TextDecode.decode()
Categories
(Core :: Internationalization, enhancement, P3)
Tracking
()
People
(Reporter: hsivonen, Unassigned)
References
(Blocks 3 open bugs)
Details
(Keywords: dev-doc-needed)
As the first step, enable shared in WebIDL and make the implementation use memcpySafeWhenRacy
so that Web content doesn't need to be responsible for the copy.
Optimizing away the copy is explicitly not in the scope of this bug.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
This doesn't block resab, but would be nice to have. Let's track it as part of follow-up.
Reporter | ||
Comment 2•3 years ago
|
||
Needinfoing self to remind me that the spec has now changed.
Reporter | ||
Comment 3•2 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #0)
As the first step, enable shared in WebIDL and make the implementation use
memcpySafeWhenRacy
so that Web content doesn't need to be responsible for the copy.
We should just go ahead and implement this using and intermediate buffer and memcpySafeWhenRacy
.
Optimizing away the copy is explicitly not in the scope of this bug.
I re-read https://github.com/rust-lang/unsafe-code-guidelines/issues/152 today. Getting the formal foundations of this part in order such that the result would be formally correct as opposed to being a YOLO approach is likely to still take years.
Updated•2 years ago
|
Reporter | ||
Comment 4•6 months ago
|
||
Comment 3 still holds. Clearing needinfo to signal that it's OK to take this bug.
Description
•