This isn't quite ready to land yet (there's still at least one FIXME, and I ...
4 years, 10 months ago
(2015-06-24 19:10:49 UTC)
#2
This isn't quite ready to land yet (there's still at least one FIXME, and I need
to add proper comments to SerializationTag.h), but I'd like to get some eyeballs
on my ScriptValueSerializer code to make sure I'm doing it right (I at least
pass the tests I added).
jsbell
Initial feedback - all on the tests. You'll also want to bump the version in ...
4 years, 10 months ago
(2015-06-24 20:30:43 UTC)
#3
I've bumped the version. What tests would you like to see added to fast/storage/serialized-script-value.html? https://codereview.chromium.org/1205973002/diff/20001/LayoutTests/fast/js/structured-clone.html ...
4 years, 10 months ago
(2015-06-24 21:13:32 UTC)
#4
On 2015/06/24 21:13:32, adamk wrote: > What tests would you like to see added to ...
4 years, 10 months ago
(2015-06-24 21:37:11 UTC)
#5
On 2015/06/24 21:13:32, adamk wrote:
> What tests would you like to see added to
> fast/storage/serialized-script-value.html?
I think just a simple Map([[1,2],[3,4]]) and Set([1,2]) example that records the
serialization format for posterity. (That's our best chance of catching
accidental changes to the format, which would pass all of our other
serialize/deserialize tests but cause older data on disk to fail to parse.)
https://codereview.chromium.org/1205973002/diff/20001/LayoutTests/fast/js/str...
File LayoutTests/fast/js/structured-clone.html (right):
https://codereview.chromium.org/1205973002/diff/20001/LayoutTests/fast/js/str...
LayoutTests/fast/js/structured-clone.html:139: }, 'Verify: "Maps and Sets are
cloned..."');
On 2015/06/24 21:13:31, adamk wrote:
> On 2015/06/24 20:30:42, jsbell wrote:
> > The 'Verify: "xxxx..."' phrasing in tests above is quoting from the HTML
spec
> > itself. I don't think this is a quote?
>
> I've removed the quotes and the ellipses. Should I actually move these tests
to
> a different file?
I think this file is fine.
https://codereview.chromium.org/1205973002/diff/20001/LayoutTests/fast/js/str...
LayoutTests/fast/js/structured-clone.html:155:
On 2015/06/24 21:13:32, adamk wrote:
> On 2015/06/24 20:30:42, jsbell wrote:
> > Can you add a test where a member of the map/set has a getter that mutates
the
> > map/set itself?
>
> Done. Should we file a bug for this?
Against HTML? Probably.
One more edge case we should test: Map/Set containing a key and/or value that is
not cloneable (e.g. an Error)
https://codereview.chromium.org/1205973002/diff/60001/Source/bindings/core/v8...
File Source/bindings/core/v8/ScriptValueSerializer.cpp (right):
https://codereview.chromium.org/1205973002/diff/60001/Source/bindings/core/v8...
Source/bindings/core/v8/ScriptValueSerializer.cpp:1955: v8::Local<v8::Map> map;
Can this be merged with line 1959?
https://codereview.chromium.org/1205973002/diff/60001/Source/bindings/core/v8...
Source/bindings/core/v8/ScriptValueSerializer.cpp:1978: v8::Local<v8::Set> set;
Merge w/ line 1982?
adamk
Handled last round of comments, modulo fast/storage/serialized-script-value.html (which will take me a bit as I ...
4 years, 10 months ago
(2015-06-24 22:50:31 UTC)
#6
V8 API stability nag: According to the stability checker, this CL here might have violated ...
4 years, 10 months ago
(2015-06-29 13:28:08 UTC)
#17
Message was sent while issue was closed.
V8 API stability nag: According to the stability checker, this CL here might
have violated the V8 API stability window:
http://build.chromium.org/p/chromium.fyi/builders/Linux%20V8%20API%20Stabilit...
Contains:
https://chromium.googlesource.com/chromium/src/+log/5d56905d44c0a30cf0ced68f2...
Nothing bad happened this time, but please keep a large enough window between
v8-side api changes and blink-side consumers of these changes. Minimum is the
last used v8 canary version (that's what the bot checks against), better a week.
V8 always needs to be revertable cleanly to the last canary in case a canary is
broken.
If you think this is all nonsense, please ping me - the bot is new and not well
tested yet.
Issue 1205973002: Support structured cloning of ES'15 Map and Set
(Closed)
Created 4 years, 10 months ago by adamk
Modified 4 years, 10 months ago
Reviewers: chrishtr, jsbell, Michael Achenbach
Base URL: svn://svn.chromium.org/blink/trunk
Comments: 18