Index: Source/bindings/tests/results/core/V8TestTypedefs.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestTypedefs.cpp b/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
index f2a5f4154d06d944b56026a496246fe1bbfce49c..7e9f9eb311428288b7939a0b530b0a2eb662b611 100644 |
--- a/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
+++ b/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
@@ -34,6 +34,18 @@ const WrapperTypeInfo& TestTypedefs::s_wrapperTypeInfo = V8TestTypedefs::wrapper |
namespace TestTypedefsV8Internal { |
+template<class CallbackInfo> |
+static void TestTypedefsForceSetAttributeOnThis(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) |
+{ |
+ if (info.This()->IsObject()) |
+ v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
+} |
+ |
+static void TestTypedefsForceSetAttributeOnThisCallback(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
+{ |
+ TestTypedefsV8Internal::TestTypedefsForceSetAttributeOnThis(name, v8Value, info); |
+} |
+ |
static void uLongLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
@@ -76,17 +88,6 @@ static void TestTypedefsConstructorGetter(v8::Local<v8::String>, const v8::Prope |
v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::unwrap(data))); |
} |
-static void TestTypedefsForceSetAttributeOnThis(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- if (info.This()->IsObject()) |
- v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
-} |
- |
-static void TestTypedefsForceSetAttributeOnThisCallback(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
-{ |
- TestTypedefsV8Internal::TestTypedefsForceSetAttributeOnThis(name, v8Value, info); |
-} |
- |
static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayOfLongsArg", "TestTypedefs", info.Holder(), info.GetIsolate()); |