| Index: Source/bindings/scripts/v8_methods.py
|
| diff --git a/Source/bindings/scripts/v8_methods.py b/Source/bindings/scripts/v8_methods.py
|
| index bf0c407b0912c763a9d67cdc8c2c482944002eb0..bfb3770bbf5ad5903404a59fcb8632f1739d3958 100644
|
| --- a/Source/bindings/scripts/v8_methods.py
|
| +++ b/Source/bindings/scripts/v8_methods.py
|
| @@ -198,12 +198,6 @@ def argument_context(interface, method, argument, index):
|
| has_extended_attribute_value(method, 'TypeChecking', 'Interface')) and
|
| idl_type.is_wrapper_type)
|
|
|
| - type_checked = (type_checking_interface and
|
| - # These allow null and undefined values, so a type-check is still required.
|
| - not idl_type.is_nullable and
|
| - not (argument.is_optional and
|
| - 'Default' in extended_attributes))
|
| -
|
| if ('ImplementedInPrivateScript' in extended_attributes and
|
| not idl_type.is_wrapper_type and
|
| not idl_type.is_basic_type):
|
| @@ -245,7 +239,7 @@ def argument_context(interface, method, argument, index):
|
| 'use_permissive_dictionary_conversion': 'PermissiveDictionaryConversion' in extended_attributes,
|
| 'v8_set_return_value': v8_set_return_value(interface.name, method, this_cpp_value),
|
| 'v8_set_return_value_for_main_world': v8_set_return_value(interface.name, method, this_cpp_value, for_main_world=True),
|
| - 'v8_value_to_local_cpp_value': v8_value_to_local_cpp_value(argument, index, type_checked, return_promise=method.returns_promise),
|
| + 'v8_value_to_local_cpp_value': v8_value_to_local_cpp_value(argument, index, return_promise=method.returns_promise),
|
| 'vector_type': v8_types.cpp_ptr_type('Vector', 'HeapVector', idl_type.gc_type),
|
| }
|
|
|
| @@ -372,14 +366,15 @@ def v8_value_to_local_cpp_variadic_value(argument, index, return_promise):
|
| return '%s%s(%s)' % (macro, suffix, ', '.join(macro_args))
|
|
|
|
|
| -def v8_value_to_local_cpp_value(argument, index, type_checked, return_promise=False):
|
| +def v8_value_to_local_cpp_value(argument, index, return_promise=False):
|
| extended_attributes = argument.extended_attributes
|
| idl_type = argument.idl_type
|
| name = argument.name
|
| if argument.is_variadic:
|
| return v8_value_to_local_cpp_variadic_value(argument, index, return_promise)
|
| return idl_type.v8_value_to_local_cpp_value(extended_attributes, 'info[%s]' % index,
|
| - name, needs_type_check=not type_checked, index=index, declare_variable=False, return_promise=return_promise)
|
| + name, index=index, declare_variable=False,
|
| + return_promise=return_promise)
|
|
|
|
|
| ################################################################################
|
|
|