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

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

Issue 227483008: Support FormData on WorkerGlobalScope. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test expectations Created 6 years, 8 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_interface.py
diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py
index e3d8f4c3a621a2d9fbab144f78d90d6222d5a899..917f156fc48a9aa4941ca96d1a075a4238ae55d8 100644
--- a/Source/bindings/scripts/v8_interface.py
+++ b/Source/bindings/scripts/v8_interface.py
@@ -453,7 +453,7 @@ def overload_check_argument(index, argument):
def generate_constructor(interface, constructor):
return {
'argument_list': constructor_argument_list(interface, constructor),
- 'arguments': [constructor_argument(argument, index)
+ 'arguments': [constructor_argument(interface, constructor, argument, index)
for index, argument in enumerate(constructor.arguments)],
'has_exception_state':
# [RaisesException=Constructor]
@@ -486,9 +486,11 @@ def constructor_argument_list(interface, constructor):
return arguments
-def constructor_argument(argument, index):
+def constructor_argument(interface, constructor, argument, index):
idl_type = argument.idl_type
+ this_cpp_value = v8_methods.cpp_value(interface, constructor, index, for_constructor=True)
Nils Barth (inactive) 2014/04/09 02:00:27 Could you inline this expression, as it's not bein
sof 2014/04/09 07:31:59 Done + sorted the fields.
return {
+ 'cpp_value': this_cpp_value,
'has_default': 'Default' in argument.extended_attributes,
'idl_type_object': idl_type,
# Dictionary is special-cased, but arrays and sequences shouldn't be

Powered by Google App Engine
This is Rietveld 408576698