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

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

Issue 1150863004: toImplArguments should return HeapVector for Union types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/bindings/core/v8/V8Binding.h ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/v8_methods.py
diff --git a/Source/bindings/scripts/v8_methods.py b/Source/bindings/scripts/v8_methods.py
index 5831603c1503011358bb44e4bf6c6bf4e72db6a5..eab6a0460c266ecb0790d3251b3ba734c79f2956 100644
--- a/Source/bindings/scripts/v8_methods.py
+++ b/Source/bindings/scripts/v8_methods.py
@@ -371,8 +371,13 @@ def v8_value_to_local_cpp_variadic_value(method, argument, index, return_promise
else:
check_expression = 'exceptionState.throwIfNeeded()'
+ if idl_type.is_dictionary or idl_type.is_union_type:
+ vector_type = 'HeapVector'
+ else:
+ vector_type = 'Vector'
+
return {
- 'assign_expression': 'toImplArguments<%s>(info, %s, exceptionState)' % (this_cpp_type, index),
+ 'assign_expression': 'toImplArguments<%s<%s>>(info, %s, exceptionState)' % (vector_type, this_cpp_type, index),
'check_expression': check_expression,
'cpp_type': this_cpp_type,
'cpp_name': argument.name,
« no previous file with comments | « Source/bindings/core/v8/V8Binding.h ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698