| 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..19eac6f3d568de7728816f08bba159e85216a512 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 TestDataView.");
|
| + return nativeValue;
|
| }
|
|
|
| } // namespace blink
|
|
|