Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Issue 2308053002: Handle errors in v8::ValueDeserializer by throwing exceptions. (Closed)

Created:
4 years, 3 months ago by jbroman
Modified:
4 years, 3 months ago
Reviewers:
Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Handle errors in v8::ValueDeserializer by throwing exceptions. This restores the contract that all API methods that return Maybe<T> or MaybeLocal<T> always throw an exception when they return nothing. Since v8::ValueDeserializer::ReadHeader can now throw exceptions, it needs a Local<Context> parameter so that it can set up execution state (entering the context, etc.). The old method has been marked for deprecation, but since this API is experimental I intend to remove it as soon as I've removed the use from Blink. value-serializer-unittest has been updated to expect an exception in all decode failure cases. BUG=chromium:148757, chromium:641964 Committed: https://crrev.com/5a97e955204c4782d9727e8248b12739720232ba Cr-Commit-Position: refs/heads/master@{#39188}

Patch Set 1 #

Patch Set 2 : minor cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -31 lines) Patch
M include/v8.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 1 4 chunks +40 lines, -19 lines 0 comments Download
M src/counters.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/messages.h View 1 chunk +5 lines, -1 line 0 comments Download
M src/value-serializer.cc View 5 chunks +20 lines, -6 lines 0 comments Download
M test/unittests/value-serializer-unittest.cc View 3 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
jbroman
haraken@ pointed out that the V8 API is supposed to promise that Maybe<T> and MaybeLocal<T> ...
4 years, 3 months ago (2016-09-02 19:53:21 UTC) #9
Jakob Kummerow
lgtm
4 years, 3 months ago (2016-09-05 11:33:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2308053002/20001
4 years, 3 months ago (2016-09-06 02:58:11 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-06 03:24:40 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 03:25:02 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5a97e955204c4782d9727e8248b12739720232ba
Cr-Commit-Position: refs/heads/master@{#39188}

Powered by Google App Engine
This is Rietveld 408576698