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

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

Issue 54903014: [EnforceRange] doesn't enforce range of a short (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Extend layout test Created 7 years, 1 month 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/unstable/v8_types.py
diff --git a/Source/bindings/scripts/unstable/v8_types.py b/Source/bindings/scripts/unstable/v8_types.py
index 77a790e712348efa2f3ce68254281a6b8d793ad3..89906dec1ddc4c0cb9ae7157a7ad7eb41e9a8149 100644
--- a/Source/bindings/scripts/unstable/v8_types.py
+++ b/Source/bindings/scripts/unstable/v8_types.py
@@ -342,8 +342,8 @@ V8_VALUE_TO_CPP_VALUE_BASIC = {
'double': 'static_cast<double>({v8_value}->NumberValue())',
'byte': 'toInt8({arguments})',
'octet': 'toUInt8({arguments})',
- 'short': 'toInt32({arguments})',
- 'unsigned short': 'toUInt32({arguments})',
+ 'short': 'toInt16({arguments})',
+ 'unsigned short': 'toUInt16({arguments})',
'long': 'toInt32({arguments})',
'unsigned long': 'toUInt32({arguments})',
'long long': 'toInt64({arguments})',

Powered by Google App Engine
This is Rietveld 408576698