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

Issue 482713002: IDL: Improve "argument needs v8::TryCatch" logic slightly (Closed)

Created:
6 years, 4 months ago by Jens Widell
Modified:
6 years, 4 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Improve "argument needs v8::TryCatch" logic slightly Enumeration types are effectively strings, and should thus be handled the same, meaning they don't need a v8::TryCatch object. This changes generated code for a few methods that take at least one enumeration type argument, and don't otherwise need a v8::TryCatch, by eliminating the unnecessary v8::TryCatch locals. Also refactor slightly: pass in the IdlOperation object and check whether the return type is Promise inside argument_needs_try_catch(), instead of passing in that fact as an argument. This keeps the logic localized in argument_needs_try_catch(). R=haraken@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180459

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M Source/bindings/scripts/v8_interface.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/v8_methods.py View 4 chunks +6 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jens Widell
PTAL
6 years, 4 months ago (2014-08-18 12:03:50 UTC) #1
haraken
LGTM
6 years, 4 months ago (2014-08-18 12:36:40 UTC) #2
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 4 months ago (2014-08-18 12:39:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/482713002/1
6 years, 4 months ago (2014-08-18 12:39:48 UTC) #4
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 13:37:24 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (1) as 180459

Powered by Google App Engine
This is Rietveld 408576698