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

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

Issue 2857303003: History API throws when serializing a SharedArrayBuffer (Closed)
Patch Set: use enum class instead of bool 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 e986398b797bc26638430afc634303c286e96e95..89f66c0b3deab6d6e08832ded30f26a0bebf4ca0 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::SerializeForStorage::kYes)',
jbroman 2017/05/08 14:34:02 It's not apparent why this v8_value_to_cpp_value s
binji 2017/05/09 01:07:08 I needed to keep this code for the default case, b
+ 'exceptionState'])
elif idl_type.v8_conversion_needs_exception_state:
arguments = ', '.join([v8_value, 'exceptionState'])
else:

Powered by Google App Engine
This is Rietveld 408576698