| Index: third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| index c448a0ab2ab7a8758200c85982a0b08e17120eb5..2a8584f61a00ca6a99f8c0e0e9d4f1b5317d7337 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
|
| @@ -1056,7 +1056,10 @@ def resolution_tests_methods(effective_overloads):
|
| for idl_type, method in ((idl_type, method)
|
| for idl_type, method in idl_types_methods
|
| if idl_type.is_wrapper_type):
|
| - test = 'V8{idl_type}::hasInstance({cpp_value}, info.GetIsolate())'.format(idl_type=idl_type.base_type, cpp_value=cpp_value)
|
| + if idl_type.is_array_buffer_or_view:
|
| + test = '{cpp_value}->Is{idl_type}()'.format(idl_type=idl_type.base_type, cpp_value=cpp_value)
|
| + else:
|
| + test = 'V8{idl_type}::hasInstance({cpp_value}, info.GetIsolate())'.format(idl_type=idl_type.base_type, cpp_value=cpp_value)
|
| yield test, method
|
|
|
| # 13. Otherwise: if IsCallable(V) is true, and there is an entry in S that
|
|
|