Structured cloning should have a JS_WriteDouble
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
People
(Reporter: bzbarsky, Assigned: caroline)
Details
Attachments
(2 files)
For that matter, having a public API to write doubles would be nice too, I suspect.
For now, the code in bug 1420580 is hand-rolling this via bitwise casts to uint32_t, which I think works correctly, modulo not doing any NaN canonicalization. But it's not 100% clear whether we'd want NaN canonicalization in these APIs.
Reporter | ||
Comment 1•5 years ago
|
||
Yeah, we need a JS_WriteDouble too, in bug 1420580.
Comment 2•5 years ago
|
||
Prioritizing cross-team requests is hard. How many beers is this worth?
Reporter | ||
Comment 3•5 years ago
|
||
Good question. This is not blocking anything, but it would be nice to clean up the code, basically. Let's say 1 beer? ;)
Not urgent, but would be nice.
Looks like we don't need the "two floats" option anymore, just the "write a double" option.
Updated•5 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Reporter | ||
Comment 5•2 years ago
|
||
Caroline, I won't be able to review this, so having me as a blocking reviewer is not a great idea.
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D142585
Pushed by ccullen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8d8a0764bcaf Add JS_WriteDouble. r=mgaudet,smaug https://hg.mozilla.org/integration/autoland/rev/d92ae820685d Add JS_ReadDouble. r=smaug
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8d8a0764bcaf
https://hg.mozilla.org/mozilla-central/rev/d92ae820685d
Updated•2 years ago
|
Description
•