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