| Index: Source/bindings/tests/results/core/V8TestObject.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8TestObject.cpp b/Source/bindings/tests/results/core/V8TestObject.cpp
|
| index c77ea4b3711f9ea72234cb897d1db87da0c9afab..a43fafb7db553bf11eb5edf1022a62c18a79a182 100644
|
| --- a/Source/bindings/tests/results/core/V8TestObject.cpp
|
| +++ b/Source/bindings/tests/results/core/V8TestObject.cpp
|
| @@ -8310,14 +8310,9 @@ static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
|
| return;
|
| }
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - unsigned clampUnsignedShortArg = 0;
|
| + unsigned clampUnsignedShortArg;
|
| {
|
| - v8::TryCatch block;
|
| - V8RethrowTryCatchScope rethrow(block);
|
| - double clampUnsignedShortArgNativeValue;
|
| - TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->NumberValue());
|
| - if (!std::isnan(clampUnsignedShortArgNativeValue))
|
| - clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNativeValue);
|
| + TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedShortArg, toUInt16(info[0], Clamp, exceptionState), exceptionState);
|
| }
|
| impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
|
| }
|
| @@ -8338,14 +8333,9 @@ static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
|
| return;
|
| }
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - unsigned clampUnsignedLongArg = 0;
|
| + unsigned clampUnsignedLongArg;
|
| {
|
| - v8::TryCatch block;
|
| - V8RethrowTryCatchScope rethrow(block);
|
| - double clampUnsignedLongArgNativeValue;
|
| - TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberValue());
|
| - if (!std::isnan(clampUnsignedLongArgNativeValue))
|
| - clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNativeValue);
|
| + TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedLongArg, toUInt32(info[0], Clamp, exceptionState), exceptionState);
|
| }
|
| impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
|
| }
|
|
|