Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
index 52d41b56fe4b84b719cfe6b9b4963e08f24f1f21..91c2a43f9b62f2a026a310560e2a48dca360c0ef 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp |
@@ -878,7 +878,10 @@ TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate* |
} |
TestInterface5Implementation* NativeValueTraits<TestInterface5Implementation>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
- return V8TestInterface5::toImplWithTypeCheck(isolate, value); |
+ TestInterface5Implementation* nativeValue = V8TestInterface5::toImplWithTypeCheck(isolate, value); |
+ if (!nativeValue) |
+ exceptionState.throwTypeError("Unable to convert value to TestInterface5."); |
+ return nativeValue; |
} |
void V8TestInterface5::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |