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

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

Issue 466323002: IDL: Use Nullable for union type return value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 1ca7631c8ef85a9400fc9bfc4c11ac834d263bf9..761548761df1a17a1a4d5cdef59d0d8437f3490e 100644
--- a/Source/bindings/scripts/v8_types.py
+++ b/Source/bindings/scripts/v8_types.py
@@ -719,7 +719,7 @@ def v8_set_return_value_union(idl_type, cpp_value, extended_attributes=None, scr
"""
return [
- member_type.v8_set_return_value(cpp_value + str(i),
+ member_type.v8_set_return_value(cpp_value.format(index=i),
extended_attributes,
script_wrappable,
release and release[i],

Powered by Google App Engine
This is Rietveld 408576698