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

Issue 1051753003: bindings: Add toBoolean() to V8Binding.h (Closed)

Created:
5 years, 8 months ago by bashi
Modified:
5 years, 8 months ago
Reviewers:
haraken, vivekg, Yuki
CC:
vivekg, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

bindings: Add toBoolean() to V8Binding.h We should use Maybe version of BooleanValue(), and it requires some additional handlings. Specifically, on failures we should rethrow a exception to ExceptionState so that call sites can detect failures. toBoolean() does the job. BUG=462402 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193528

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -16 lines) Patch
M Source/bindings/core/v8/V8Binding.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/V8Binding.cpp View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestDictionary.cpp View 1 3 chunks +9 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterfaceNode.cpp View 4 chunks +8 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 7 chunks +26 lines, -7 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestPermissiveDictionary.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
bashi
PTAL?
5 years, 8 months ago (2015-04-10 05:37:30 UTC) #2
vivekg
lgtm https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h#newcode393 Source/bindings/core/v8/V8Binding.h:393: if (value->IsBoolean()) Shall we split this into fast ...
5 years, 8 months ago (2015-04-10 05:43:47 UTC) #4
vivekg
https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h#newcode393 Source/bindings/core/v8/V8Binding.h:393: if (value->IsBoolean()) On 2015/04/10 at 05:43:47, vivekg_ wrote: > ...
5 years, 8 months ago (2015-04-10 05:47:36 UTC) #5
haraken
https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h#newcode393 Source/bindings/core/v8/V8Binding.h:393: if (value->IsBoolean()) On 2015/04/10 05:43:47, vivekg_ wrote: > Shall ...
5 years, 8 months ago (2015-04-10 05:48:01 UTC) #6
Yuki
https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/tests/results/core/V8TestDictionary.cpp File Source/bindings/tests/results/core/V8TestDictionary.cpp (right): https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/tests/results/core/V8TestDictionary.cpp#newcode48 Source/bindings/tests/results/core/V8TestDictionary.cpp:48: bool booleanMember = toBoolean(isolate, booleanMemberValue, exceptionState); This code looks ...
5 years, 8 months ago (2015-04-10 06:17:29 UTC) #7
bashi
Thank you for reviews. https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/1051753003/diff/1/Source/bindings/core/v8/V8Binding.h#newcode393 Source/bindings/core/v8/V8Binding.h:393: if (value->IsBoolean()) On 2015/04/10 05:48:01, ...
5 years, 8 months ago (2015-04-10 06:39:54 UTC) #8
haraken
LGTM
5 years, 8 months ago (2015-04-10 06:45:07 UTC) #9
Yuki
lgtm https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/tests/results/core/V8TestDictionary.cpp File Source/bindings/tests/results/core/V8TestDictionary.cpp (right): https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/tests/results/core/V8TestDictionary.cpp#newcode48 Source/bindings/tests/results/core/V8TestDictionary.cpp:48: bool booleanMember = toBoolean(isolate, booleanMemberValue, exceptionState); On 2015/04/10 ...
5 years, 8 months ago (2015-04-10 07:01:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051753003/20001
5 years, 8 months ago (2015-04-10 07:08:56 UTC) #13
vivekg
https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/core/v8/V8Binding.h#newcode391 Source/bindings/core/v8/V8Binding.h:391: bool toBooleanSlow(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); Should we export this symbol ...
5 years, 8 months ago (2015-04-10 07:17:30 UTC) #14
bashi
https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/1051753003/diff/20001/Source/bindings/core/v8/V8Binding.h#newcode391 Source/bindings/core/v8/V8Binding.h:391: bool toBooleanSlow(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); On 2015/04/10 07:17:30, vivekg_ wrote: ...
5 years, 8 months ago (2015-04-10 07:25:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051753003/40001
5 years, 8 months ago (2015-04-10 07:25:46 UTC) #19
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 09:19:56 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193528

Powered by Google App Engine
This is Rietveld 408576698