Chromium Code Reviews
DescriptionMake V8ValueConverter.FromV8Value be more consistent with JSON.stringify: don't
serialize undefined as null, don't serialize functions as objects, omit values
from objects when they don't serialize, and insert null into arrays when they
don't serialize.
It is now possible for FromV8Value to return NULL; previously it would return
Value::CreateNullValue on failure.
This is needed for the Storage API, where we promise that the values that are
passed in are serialized as JSON, yet the value conversion doesn't work in a
way that allows it.
However, the null-stripping behavior needs to be configurable so that existing
extension APIs (which only expect null/undefined to appear for optional values)
still work.
BUG=145081
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157074
Patch Set 1 #
Total comments: 1
Patch Set 2 : make it a property of sendRequest #Patch Set 3 : fix nulls #Patch Set 4 : test compile error #Patch Set 5 : ignore -> omit #
Total comments: 5
Patch Set 6 : make contextMenus API work again #Patch Set 7 : cleanup from last patchset #Patch Set 8 : use the actual objects, not empty objects #
Total comments: 3
Patch Set 9 : comment #Patch Set 10 : more comments #Patch Set 11 : no more function #Messages
Total messages: 22 (0 generated)
|