[Webkit-unassigned] [Bug 113091] [V8] IndexedDB: Exceptions thrown inconsistently for non-cloneable values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 22 15:24:51 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=113091





--- Comment #5 from Joshua Bell <jsbell at chromium.org>  2013-03-22 15:27:18 PST ---
(In reply to comment #4)
> Applying this patch to IDBObjectStore resolves the first issue, but it seems like it should not be necessary.
> 
> -    RefPtr<SerializedScriptValue> serializedValue = value.serialize(state);
> -    if (state->hadException()) {
> +    bool didThrow = false;
> +    RefPtr<SerializedScriptValue> serializedValue = value.serialize(state, 0, 0, didThrow);
> +    if (didThrow || state->hadException()) {

Actually, prior to wkrev.com/128379 the conversion to SerializedScriptValue took place in the generated binding code rather than via ScriptValue. That code only looked at the "didThrow" out param from serialize().

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list