Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp |
index 7ec4601a1035c1e972e000dd924298ca73f226d6..4414164111a924ac73d35919ff1712526690f19c 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceCheckSecurity.cpp |
@@ -13,6 +13,8 @@ |
#include "bindings/core/v8/BindingSecurity.h" |
#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/IDLTypes.h" |
+#include "bindings/core/v8/NativeValueTraitsImpl.h" |
#include "bindings/core/v8/V8CrossOriginSetterInfo.h" |
#include "bindings/core/v8/V8DOMConfiguration.h" |
#include "bindings/core/v8/V8ObjectConstructor.h" |
@@ -77,7 +79,7 @@ static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: |
ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestInterfaceCheckSecurity", "longAttribute"); |
// Prepare the value to be set. |
- int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exceptionState); |
+ int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(), v8Value, exceptionState, NormalConversion); |
if (exceptionState.hadException()) |
return; |
@@ -99,7 +101,7 @@ static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> |
ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestInterfaceCheckSecurity", "doNotCheckSecurityLongAttribute"); |
// Prepare the value to be set. |
- int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exceptionState); |
+ int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(), v8Value, exceptionState, NormalConversion); |
if (exceptionState.hadException()) |
return; |
@@ -129,7 +131,7 @@ static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: |
ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestInterfaceCheckSecurity", "doNotCheckSecurityOnSetterLongAttribute"); |
// Prepare the value to be set. |
- int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exceptionState); |
+ int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(), v8Value, exceptionState, NormalConversion); |
if (exceptionState.hadException()) |
return; |
@@ -519,4 +521,8 @@ TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8 |
return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr; |
} |
+TestInterfaceCheckSecurity* NativeValueTraits<TestInterfaceCheckSecurity>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
+ return V8TestInterfaceCheckSecurity::toImplWithTypeCheck(isolate, value); |
+} |
+ |
} // namespace blink |