Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
index 6eb9b3c879c5e27b84542b7ade26db981d4ad606..a307d2ab6bd94021635c30d43833e4f1fdb4b6f7 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
@@ -12,6 +12,8 @@ |
#include "V8TestIntegerIndexed.h" |
#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/IDLTypes.h" |
+#include "bindings/core/v8/NativeValueTraitsImpl.h" |
#include "bindings/core/v8/V8DOMConfiguration.h" |
#include "bindings/core/v8/V8Document.h" |
#include "bindings/core/v8/V8Node.h" |
@@ -68,7 +70,7 @@ static void lengthAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functi |
ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestIntegerIndexed", "length"); |
// Prepare the value to be set. |
- int16_t cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, exceptionState); |
+ int16_t cppValue = NativeValueTraits<IDLShort>::nativeValue(info.GetIsolate(), v8Value, exceptionState, NormalConversion); |
if (exceptionState.hadException()) |
return; |
@@ -208,4 +210,8 @@ TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola |
return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr; |
} |
+TestIntegerIndexed* NativeValueTraits<TestIntegerIndexed>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
+ return V8TestIntegerIndexed::toImplWithTypeCheck(isolate, value); |
+} |
+ |
} // namespace blink |