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

Unified Diff: Source/bindings/scripts/v8_types.py

Issue 1011093002: [bindings] Pass NormalConversion to to[U]Int{8/16/32/64}(...) in v8_types.py and reduce conversion … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/v8_types.py
diff --git a/Source/bindings/scripts/v8_types.py b/Source/bindings/scripts/v8_types.py
index 96fe1790e78f77a595885a6a8f46b1ba0caea40b..bcd2f85b60c608299a4ba03d25bc2cc026a3ea44 100644
--- a/Source/bindings/scripts/v8_types.py
+++ b/Source/bindings/scripts/v8_types.py
@@ -546,7 +546,10 @@ def v8_value_to_cpp_value(idl_type, extended_attributes, v8_value, variable_name
elif 'Clamp' in extended_attributes:
arguments = ', '.join([v8_value, 'Clamp', 'exceptionState'])
elif idl_type.v8_conversion_needs_exception_state:
- arguments = ', '.join([v8_value, 'exceptionState'])
+ if idl_type.is_integer_type:
Jens Widell 2015/03/17 11:28:22 The preceding two cases, EnforceRange and Clamp, a
+ arguments = ', '.join([v8_value, 'NormalConversion', 'exceptionState'])
+ else:
+ arguments = ', '.join([v8_value, 'exceptionState'])
else:
arguments = v8_value
if base_idl_type in V8_VALUE_TO_CPP_VALUE:
« no previous file with comments | « Source/bindings/core/v8/custom/V8BlobCustomHelpers.cpp ('k') | Source/bindings/tests/results/core/UnionTypesCore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698