| Index: third_party/WebKit/Source/bindings/scripts/v8_methods.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_methods.py b/third_party/WebKit/Source/bindings/scripts/v8_methods.py
|
| index ee4ba6744d1ad91225e228715b652147206a6b2e..32900712025a32bf294dbf99c444c34891b063ff 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_methods.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_methods.py
|
| @@ -427,11 +427,6 @@ def v8_value_to_local_cpp_variadic_value(method, argument, index, return_promise
|
| idl_type = argument.idl_type
|
| this_cpp_type = idl_type.cpp_type
|
|
|
| - if method.returns_promise:
|
| - check_expression = 'exceptionState.hadException()'
|
| - else:
|
| - check_expression = 'exceptionState.throwIfNeeded()'
|
| -
|
| if idl_type.is_dictionary or idl_type.is_union_type:
|
| vector_type = 'HeapVector'
|
| else:
|
| @@ -439,7 +434,7 @@ def v8_value_to_local_cpp_variadic_value(method, argument, index, return_promise
|
|
|
| return {
|
| 'assign_expression': 'toImplArguments<%s<%s>>(info, %s, exceptionState)' % (vector_type, this_cpp_type, index),
|
| - 'check_expression': check_expression,
|
| + 'check_expression': 'exceptionState.hadException()',
|
| 'cpp_type': this_cpp_type,
|
| 'cpp_name': argument.name,
|
| 'declare_variable': False,
|
|
|