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