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

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

Issue 2857303003: History API throws when serializing a SharedArrayBuffer (Closed)
Patch Set: merge HEAD Created 3 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
Index: third_party/WebKit/Source/bindings/scripts/v8_types.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_types.py b/third_party/WebKit/Source/bindings/scripts/v8_types.py
index 8e1b3e02262d9ab8f94ff1106df4674826875e6b..121779c8e03990b59f938dd13e26cedbbe985233 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_types.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_types.py
@@ -606,6 +606,11 @@ def v8_value_to_cpp_value(idl_type, extended_attributes, v8_value, variable_name
elif 'Clamp' in extended_attributes:
configuration = 'kClamp'
arguments = ', '.join([v8_value, 'exceptionState', configuration])
+ elif base_idl_type == 'SerializedScriptValue':
+ arguments = ', '.join([
+ v8_value,
+ 'SerializedScriptValue::SerializeOptions(SerializedScriptValue::kNotForStorage)',
+ 'exceptionState'])
elif idl_type.v8_conversion_needs_exception_state:
arguments = ', '.join([v8_value, 'exceptionState'])
else:

Powered by Google App Engine
This is Rietveld 408576698