| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
|
| index 75f396ba4381ea87699e394fdb975258a73f27ee..d27a4663e69a07d374092d7da38321be4cd1b448 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp
|
| @@ -78,34 +78,33 @@ void isTrustedAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| TestInterfaceEventInitConstructorV8Internal::isTrustedAttributeGetter(info);
|
| }
|
|
|
| -static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ConstructionContext, "TestInterfaceEventInitConstructor");
|
| -
|
| - if (UNLIKELY(info.Length() < 2)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
|
| - return;
|
| - }
|
| -
|
| - V8StringResource<> type;
|
| - TestInterfaceEventInit testInterfaceEventInit;
|
| - type = info[0];
|
| - if (!type.prepare())
|
| - return;
|
| -
|
| - if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) {
|
| - exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit') is not an object.");
|
| -
|
| - return;
|
| - }
|
| - V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState);
|
| - if (exceptionState.hadException())
|
| - return;
|
| -
|
| - TestInterfaceEventInitConstructor* impl = TestInterfaceEventInitConstructor::create(type, testInterfaceEventInit);
|
| - v8::Local<v8::Object> wrapper = info.Holder();
|
| - wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConstructor::wrapperTypeInfo, wrapper);
|
| - v8SetReturnValue(info, wrapper);
|
| +static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ConstructionContext, "TestInterfaceEventInitConstructor");
|
| +
|
| + if (UNLIKELY(info.Length() < 2)) {
|
| + exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
|
| + return;
|
| + }
|
| +
|
| + V8StringResource<> type;
|
| + TestInterfaceEventInit testInterfaceEventInit;
|
| + type = info[0];
|
| + if (!type.prepare())
|
| + return;
|
| +
|
| + if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) {
|
| + exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit') is not an object.");
|
| +
|
| + return;
|
| + }
|
| + V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState);
|
| + if (exceptionState.hadException())
|
| + return;
|
| +
|
| + TestInterfaceEventInitConstructor* impl = TestInterfaceEventInitConstructor::create(type, testInterfaceEventInit);
|
| + v8::Local<v8::Object> wrapper = info.Holder();
|
| + wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConstructor::wrapperTypeInfo, wrapper);
|
| + v8SetReturnValue(info, wrapper);
|
| }
|
|
|
| } // namespace TestInterfaceEventInitConstructorV8Internal
|
|
|