Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp |
index a49cec8437a503bca514d98ea635f7dad20ff1a8..651610f73c4eeb3babeac2511612a2bfb799b188 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor2.cpp |
@@ -267,7 +267,10 @@ TestInterfaceConstructor2* V8TestInterfaceConstructor2::toImplWithTypeCheck(v8:: |
} |
TestInterfaceConstructor2* NativeValueTraits<TestInterfaceConstructor2>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
- return V8TestInterfaceConstructor2::toImplWithTypeCheck(isolate, value); |
+ TestInterfaceConstructor2* nativeValue = V8TestInterfaceConstructor2::toImplWithTypeCheck(isolate, value); |
+ if (!nativeValue) |
+ exceptionState.throwTypeError("Unable to convert value to TestInterfaceConstructor2."); |
+ return nativeValue; |
} |
} // namespace blink |