| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp
|
| index 19112e370a09eab9520cc3b6a592da8c9e338032..720285f8a15c19285421b5ba9d7bb33cf1853af4 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp
|
| @@ -50,35 +50,33 @@ static_assert(
|
|
|
| namespace TestInterfaceConstructor4V8Internal {
|
|
|
| -static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestInterfaceConstructor4* testInterface4Arg;
|
| - testInterface4Arg = V8TestInterfaceConstructor4::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| - if (!testInterface4Arg) {
|
| - V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceConstructor4", "parameter 1 is not of type 'TestInterfaceConstructor4'."));
|
| +static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestInterfaceConstructor4* testInterface4Arg;
|
| + testInterface4Arg = V8TestInterfaceConstructor4::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| + if (!testInterface4Arg) {
|
| + V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceConstructor4", "parameter 1 is not of type 'TestInterfaceConstructor4'."));
|
|
|
| - return;
|
| - }
|
| + return;
|
| + }
|
|
|
| - TestInterfaceConstructor4* impl = TestInterfaceConstructor4::create(testInterface4Arg);
|
| - v8::Local<v8::Object> wrapper = info.Holder();
|
| - wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper);
|
| - v8SetReturnValue(info, wrapper);
|
| + TestInterfaceConstructor4* impl = TestInterfaceConstructor4::create(testInterface4Arg);
|
| + v8::Local<v8::Object> wrapper = info.Holder();
|
| + wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper);
|
| + v8SetReturnValue(info, wrapper);
|
| }
|
|
|
| -static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ConstructionContext, "TestInterfaceConstructor4");
|
| +static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ConstructionContext, "TestInterfaceConstructor4");
|
|
|
| - V8StringResource<> usvStringArg;
|
| - usvStringArg = toUSVString(info.GetIsolate(), info[0], exceptionState);
|
| - if (exceptionState.hadException())
|
| - return;
|
| + V8StringResource<> usvStringArg;
|
| + usvStringArg = toUSVString(info.GetIsolate(), info[0], exceptionState);
|
| + if (exceptionState.hadException())
|
| + return;
|
|
|
| - TestInterfaceConstructor4* impl = TestInterfaceConstructor4::create(usvStringArg);
|
| - v8::Local<v8::Object> wrapper = info.Holder();
|
| - wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper);
|
| - v8SetReturnValue(info, wrapper);
|
| + TestInterfaceConstructor4* impl = TestInterfaceConstructor4::create(usvStringArg);
|
| + v8::Local<v8::Object> wrapper = info.Holder();
|
| + wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper);
|
| + v8SetReturnValue(info, wrapper);
|
| }
|
|
|
| static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
|
|