| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| index 2ce3bc81ed75532b11ea976cc482837890178dcc..1764efd940d8e3c647dd6683911c6d428cbbe681 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceNode.cpp
|
| @@ -12,6 +12,8 @@
|
| #include "V8TestInterfaceNode.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/IDLTypes.h"
|
| +#include "bindings/core/v8/NativeValueTraitsImpl.h"
|
| #include "bindings/core/v8/V8AbstractEventListener.h"
|
| #include "bindings/core/v8/V8DOMConfiguration.h"
|
| #include "bindings/core/v8/V8EventListenerHelper.h"
|
| @@ -213,7 +215,7 @@ static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con
|
| v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg(), impl);
|
| return;
|
| }
|
| - optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptionState);
|
| + optionalBooleanArgument = NativeValueTraits<IDLBoolean>::nativeValue(info.GetIsolate(), info[0], exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
|
|
| @@ -236,7 +238,7 @@ static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
|
| v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg());
|
| return;
|
| }
|
| - optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptionState);
|
| + optionalBooleanArgument = NativeValueTraits<IDLBoolean>::nativeValue(info.GetIsolate(), info[0], exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
|
|
| @@ -379,4 +381,8 @@ TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
|
| return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr;
|
| }
|
|
|
| +TestInterfaceNode* NativeValueTraits<TestInterfaceNode>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) {
|
| + return V8TestInterfaceNode::toImplWithTypeCheck(isolate, value);
|
| +}
|
| +
|
| } // namespace blink
|
|
|