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