| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| index 27e3461aa1b1728d1e92b2ccc7c3072a4b15d8f8..270abf093b8ef68a2807bef8806497d90424808c 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| @@ -77,36 +77,33 @@ void readonlyStringAttributeAttributeGetterCallback(const v8::FunctionCallbackIn
|
| TestExceptionV8Internal::readonlyStringAttributeAttributeGetter(info);
|
| }
|
|
|
| -static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestException* impl = V8TestException::toImpl(info.Holder());
|
| +static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestException* impl = V8TestException::toImpl(info.Holder());
|
|
|
| - v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
|
| + v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
|
| }
|
|
|
| -void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestExceptionV8Internal::toStringMethod(info);
|
| +void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + TestExceptionV8Internal::toStringMethod(info);
|
| }
|
|
|
| -static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ConstructionContext, "TestException");
|
| -
|
| - if (UNLIKELY(info.Length() < 1)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - return;
|
| - }
|
| -
|
| - unsigned argument;
|
| - argument = toUInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| - if (exceptionState.hadException())
|
| - return;
|
| -
|
| - TestException* impl = TestException::create(argument);
|
| - v8::Local<v8::Object> wrapper = info.Holder();
|
| - wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestException::wrapperTypeInfo, wrapper);
|
| - v8SetReturnValue(info, wrapper);
|
| +static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ConstructionContext, "TestException");
|
| +
|
| + if (UNLIKELY(info.Length() < 1)) {
|
| + exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| + return;
|
| + }
|
| +
|
| + unsigned argument;
|
| + argument = toUInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| + if (exceptionState.hadException())
|
| + return;
|
| +
|
| + TestException* impl = TestException::create(argument);
|
| + v8::Local<v8::Object> wrapper = info.Holder();
|
| + wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestException::wrapperTypeInfo, wrapper);
|
| + v8SetReturnValue(info, wrapper);
|
| }
|
|
|
| } // namespace TestExceptionV8Internal
|
|
|