| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| index 40540536b14ebf7717fb5edf15d11330a5c3d972..7b9392882dcea50977cbffd91373d916204fd40b 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| @@ -4843,6 +4843,7 @@ static void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallba
|
| static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->unscopeableVoidMethod();
|
| }
|
|
|
| @@ -4854,6 +4855,7 @@ static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
| static void unscopeableRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->unscopeableRuntimeEnabledVoidMethod();
|
| }
|
|
|
| @@ -4865,6 +4867,7 @@ static void unscopeableRuntimeEnabledVoidMethodMethodCallback(const v8::Function
|
| static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->voidMethod();
|
| }
|
|
|
| @@ -4886,6 +4889,7 @@ static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateMethod()));
|
| }
|
|
|
| @@ -4897,6 +4901,7 @@ static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -4908,6 +4913,7 @@ static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
|
| static void byteStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -4919,6 +4925,7 @@ static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void usvStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->usvStringMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -4930,6 +4937,7 @@ static void usvStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
|
| static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod()));
|
| }
|
|
|
| @@ -4941,6 +4949,7 @@ static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
|
| static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueBool(info, impl->booleanMethod());
|
| }
|
|
|
| @@ -4952,6 +4961,7 @@ static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
|
| static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueInt(info, impl->byteMethod());
|
| }
|
|
|
| @@ -4963,6 +4973,7 @@ static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->doubleMethod());
|
| }
|
|
|
| @@ -4974,6 +4985,7 @@ static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
|
| static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->floatMethod());
|
| }
|
|
|
| @@ -4985,6 +4997,7 @@ static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueInt(info, impl->longMethod());
|
| }
|
|
|
| @@ -4996,6 +5009,7 @@ static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, static_cast<double>(impl->longLongMethod()));
|
| }
|
|
|
| @@ -5007,6 +5021,7 @@ static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
|
| static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueUnsigned(info, impl->octetMethod());
|
| }
|
|
|
| @@ -5018,6 +5033,7 @@ static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueInt(info, impl->shortMethod());
|
| }
|
|
|
| @@ -5029,6 +5045,7 @@ static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueUnsigned(info, impl->unsignedLongMethod());
|
| }
|
|
|
| @@ -5040,6 +5057,7 @@ static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
| static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod()));
|
| }
|
|
|
| @@ -5051,6 +5069,7 @@ static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
|
| static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueUnsigned(info, impl->unsignedShortMethod());
|
| }
|
|
|
| @@ -5061,12 +5080,15 @@ static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDateArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDateArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| double dateArg;
|
| {
|
| dateArg = toCoreDate(info.GetIsolate(), info[0], exceptionState);
|
| @@ -5084,10 +5106,12 @@ static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodStringArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = info[0];
|
| @@ -5104,12 +5128,15 @@ static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodByteStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = toByteString(info.GetIsolate(), info[0], exceptionState);
|
| @@ -5126,12 +5153,15 @@ static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
|
|
|
| static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUSVStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodUSVStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> usvStringArg;
|
| {
|
| usvStringArg = toUSVString(info.GetIsolate(), info[0], exceptionState);
|
| @@ -5148,12 +5178,15 @@ static void voidMethodUSVStringArgMethodCallback(const v8::FunctionCallbackInfo<
|
|
|
| static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDOMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDOMTimeStampArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned long long domTimeStampArg;
|
| {
|
| domTimeStampArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5170,12 +5203,15 @@ static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodBooleanArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodBooleanArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| bool booleanArg;
|
| {
|
| booleanArg = toBoolean(info.GetIsolate(), info[0], exceptionState);
|
| @@ -5192,12 +5228,15 @@ static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodByteArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodByteArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int byteArg;
|
| {
|
| byteArg = toInt8(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5214,12 +5253,15 @@ static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDoubleArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDoubleArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| double doubleArg;
|
| {
|
| doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState);
|
| @@ -5236,12 +5278,15 @@ static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
|
|
|
| static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodFloatArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodFloatArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| float floatArg;
|
| {
|
| floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState);
|
| @@ -5258,12 +5303,15 @@ static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5280,12 +5328,15 @@ static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodLongLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| long long longLongArg;
|
| {
|
| longLongArg = toInt64(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5302,12 +5353,15 @@ static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOctetArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodOctetArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned octetArg;
|
| {
|
| octetArg = toUInt8(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5324,12 +5378,15 @@ static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodShortArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodShortArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int shortArg;
|
| {
|
| shortArg = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5346,12 +5403,15 @@ static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
|
|
|
| static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodUnsignedLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned unsignedLongArg;
|
| {
|
| unsignedLongArg = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5368,12 +5428,15 @@ static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodUnsignedLongLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned long long unsignedLongLongArg;
|
| {
|
| unsignedLongLongArg = toUInt64(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5390,12 +5453,15 @@ static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
|
|
|
| static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodUnsignedShortArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned unsignedShortArg;
|
| {
|
| unsignedShortArg = toUInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -5413,6 +5479,7 @@ static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
|
| static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->testInterfaceEmptyMethod());
|
| }
|
|
|
| @@ -5424,10 +5491,12 @@ static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
|
| static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTestInterfaceEmptyArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -5446,12 +5515,15 @@ static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodLongArgTestInterfaceEmptyArg");
|
| +
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - setMinimumArityTypeError(exceptionState, 2, info.Length());
|
| + throwMinimumArityError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| @@ -5475,6 +5547,7 @@ static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
|
| static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->voidCallbackFunctionMethod().v8Value());
|
| }
|
|
|
| @@ -5486,6 +5559,7 @@ static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI
|
| static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod().v8Value());
|
| }
|
|
|
| @@ -5497,10 +5571,12 @@ static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
|
| static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodVoidCallbackFunctionArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptValue voidCallbackFunctionArg;
|
| {
|
| if (!info[0]->IsFunction()) {
|
| @@ -5520,6 +5596,7 @@ static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
|
| static void voidMethodOptionalVoidCallbackFunctionArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptValue voidCallbackFunctionArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -5549,10 +5626,12 @@ static void voidMethodOptionalVoidCallbackFunctionArgMethodCallback(const v8::Fu
|
| static void voidMethodNullableVoidCallbackFunctionArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodNullableVoidCallbackFunctionArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodNullableVoidCallbackFunctionArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptValue voidCallbackFunctionArg;
|
| {
|
| if (!info[0]->IsFunction() && !info[0]->IsNull()) {
|
| @@ -5572,10 +5651,12 @@ static void voidMethodNullableVoidCallbackFunctionArgMethodCallback(const v8::Fu
|
| static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodAnyCallbackFunctionOptionalAnyArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptValue anyCallbackFunctionOptionalAnyArgArg;
|
| {
|
| if (!info[0]->IsFunction()) {
|
| @@ -5595,6 +5676,7 @@ static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
|
| static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->anyMethod().v8Value());
|
| }
|
|
|
| @@ -5606,10 +5688,12 @@ static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
|
| static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodEventTargetArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodEventTargetArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| EventTarget* eventTargetArg;
|
| {
|
| eventTargetArg = toEventTarget(info.GetIsolate(), info[0]);
|
| @@ -5629,10 +5713,12 @@ static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
|
| static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodAnyArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodAnyArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptValue anyArg;
|
| {
|
| anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
|
| @@ -5648,10 +5734,12 @@ static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodAttrArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodAttrArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Attr* attrArg;
|
| {
|
| attrArg = V8Attr::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -5671,10 +5759,12 @@ static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodDocumentArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodDocumentArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Document* documentArg;
|
| {
|
| documentArg = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -5694,10 +5784,12 @@ static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
|
| static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodDocumentTypeArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodDocumentTypeArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DocumentType* documentTypeArg;
|
| {
|
| documentTypeArg = V8DocumentType::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -5717,10 +5809,12 @@ static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
|
| static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodElementArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodElementArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Element* elementArg;
|
| {
|
| elementArg = V8Element::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -5740,10 +5834,12 @@ static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
|
| static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodNodeArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodNodeArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Node* nodeArg;
|
| {
|
| nodeArg = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -5763,6 +5859,7 @@ static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->arrayBufferMethod());
|
| }
|
|
|
| @@ -5774,6 +5871,7 @@ static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->arrayBufferViewMethod());
|
| }
|
|
|
| @@ -5785,6 +5883,7 @@ static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
| static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->float32ArrayMethod());
|
| }
|
|
|
| @@ -5796,6 +5895,7 @@ static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
| static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->int32ArrayMethod());
|
| }
|
|
|
| @@ -5807,6 +5907,7 @@ static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->uint8ArrayMethod());
|
| }
|
|
|
| @@ -5818,10 +5919,12 @@ static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodArrayBufferArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodArrayBufferArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestArrayBuffer* arrayBufferArg;
|
| {
|
| arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Local<v8::ArrayBuffer>::Cast(info[0])) : 0;
|
| @@ -5841,10 +5944,12 @@ static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
|
| static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodArrayBufferOrNullArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestArrayBuffer* arrayBufferArg;
|
| {
|
| arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Local<v8::ArrayBuffer>::Cast(info[0])) : 0;
|
| @@ -5864,10 +5969,12 @@ static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
|
| static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodArrayBufferViewArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodArrayBufferViewArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestArrayBufferView* arrayBufferViewArg;
|
| {
|
| arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::toImpl(v8::Local<v8::ArrayBufferView>::Cast(info[0])) : 0;
|
| @@ -5887,10 +5994,12 @@ static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
|
| static void voidMethodFlexibleArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodFlexibleArrayBufferViewArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodFlexibleArrayBufferViewArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| FlexibleArrayBufferView arrayBufferViewArg;
|
| {
|
| toFlexibleArrayBufferView(info.GetIsolate(), info[0], arrayBufferViewArg, allocateFlexibleArrayBufferViewStorage(info[0]));
|
| @@ -5910,10 +6019,12 @@ static void voidMethodFlexibleArrayBufferViewArgMethodCallback(const v8::Functio
|
| static void voidMethodFlexibleArrayBufferViewTypedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodFlexibleArrayBufferViewTypedArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodFlexibleArrayBufferViewTypedArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| FlexibleFloat32ArrayView typedArrayBufferViewArg;
|
| {
|
| toFlexibleArrayBufferView(info.GetIsolate(), info[0], typedArrayBufferViewArg, allocateFlexibleArrayBufferViewStorage(info[0]));
|
| @@ -5933,10 +6044,12 @@ static void voidMethodFlexibleArrayBufferViewTypedArgMethodCallback(const v8::Fu
|
| static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodFloat32ArrayArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DOMFloat32Array* float32ArrayArg;
|
| {
|
| float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8::Local<v8::Float32Array>::Cast(info[0])) : 0;
|
| @@ -5956,10 +6069,12 @@ static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
|
| static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodInt32ArrayArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodInt32ArrayArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DOMInt32Array* int32ArrayArg;
|
| {
|
| int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Local<v8::Int32Array>::Cast(info[0])) : 0;
|
| @@ -5979,10 +6094,12 @@ static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
|
| static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodUint8ArrayArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodUint8ArrayArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DOMUint8Array* uint8ArrayArg;
|
| {
|
| uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Local<v8::Uint8Array>::Cast(info[0])) : 0;
|
| @@ -6002,6 +6119,7 @@ static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
|
| static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, toV8(impl->longArrayMethod(), info.Holder(), info.GetIsolate()));
|
| }
|
|
|
| @@ -6013,6 +6131,7 @@ static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
|
| static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, toV8(impl->stringArrayMethod(), info.Holder(), info.GetIsolate()));
|
| }
|
|
|
| @@ -6024,6 +6143,7 @@ static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayMethod(), info.Holder(), info.GetIsolate()));
|
| }
|
|
|
| @@ -6034,12 +6154,15 @@ static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
|
|
|
| static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodArrayLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<int> arrayLongArg;
|
| {
|
| arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6056,12 +6179,15 @@ static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
|
|
|
| static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodArrayStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<String> arrayStringArg;
|
| {
|
| arrayStringArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6078,12 +6204,15 @@ static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
|
|
|
| static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodArrayTestInterfaceEmptyArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg;
|
| {
|
| arrayTestInterfaceEmptyArg = (toMemberNativeArray<TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState));
|
| @@ -6100,12 +6229,15 @@ static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
|
|
|
| static void voidMethodNullableArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNullableArrayLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodNullableArrayLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Nullable<Vector<int>> arrayLongArg;
|
| {
|
| if (!isUndefinedOrNull(info[0])) {
|
| @@ -6125,6 +6257,7 @@ static void voidMethodNullableArrayLongArgMethodCallback(const v8::FunctionCallb
|
| static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, toV8(impl->longSequenceMethod(), info.Holder(), info.GetIsolate()));
|
| }
|
|
|
| @@ -6136,6 +6269,7 @@ static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
| static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, toV8(impl->stringSequenceMethod(), info.Holder(), info.GetIsolate()));
|
| }
|
|
|
| @@ -6147,6 +6281,7 @@ static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8
|
| static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, toV8(impl->testInterfaceEmptySequenceMethod(), info.Holder(), info.GetIsolate()));
|
| }
|
|
|
| @@ -6157,12 +6292,15 @@ static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
|
|
|
| static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodSequenceLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<int> longSequenceArg;
|
| {
|
| longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6179,12 +6317,15 @@ static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodSequenceStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<String> stringSequenceArg;
|
| {
|
| stringSequenceArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6201,12 +6342,15 @@ static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodSequenceTestInterfaceEmptyArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptySequenceArg;
|
| {
|
| testInterfaceEmptySequenceArg = (toMemberNativeArray<TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState));
|
| @@ -6223,12 +6367,15 @@ static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
|
|
|
| static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSequenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodSequenceSequenceDOMStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<Vector<String>> stringSequenceSequenceArg;
|
| {
|
| stringSequenceSequenceArg = toImplArray<Vector<Vector<String>>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6245,12 +6392,15 @@ static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
|
|
|
| static void voidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodNullableSequenceLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodNullableSequenceLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Nullable<Vector<int>> longSequenceArg;
|
| {
|
| if (!isUndefinedOrNull(info[0])) {
|
| @@ -6270,6 +6420,7 @@ static void voidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCa
|
| static void longFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, freezeV8Object(toV8(impl->longFrozenArrayMethod(), info.Holder(), info.GetIsolate()), info.GetIsolate()));
|
| }
|
|
|
| @@ -6280,12 +6431,15 @@ static void longFrozenArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodStringFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringFrozenArrayMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodStringFrozenArrayMethod");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<String> stringFrozenArrayArg;
|
| {
|
| stringFrozenArrayArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6302,12 +6456,15 @@ static void voidMethodStringFrozenArrayMethodMethodCallback(const v8::FunctionCa
|
|
|
| static void voidMethodTestInterfaceEmptyFrozenArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyFrozenArrayMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodTestInterfaceEmptyFrozenArrayMethod");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyFrozenArrayArg;
|
| {
|
| testInterfaceEmptyFrozenArrayArg = (toMemberNativeArray<TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState));
|
| @@ -6325,6 +6482,7 @@ static void voidMethodTestInterfaceEmptyFrozenArrayMethodMethodCallback(const v8
|
| static void nullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Nullable<int> result = impl->nullableLongMethod();
|
| if (result.isNull())
|
| v8SetReturnValueNull(info);
|
| @@ -6340,6 +6498,7 @@ static void nullableLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
|
| static void nullableStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueStringOrNull(info, impl->nullableStringMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -6351,6 +6510,7 @@ static void nullableStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
|
| static void nullableTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->nullableTestInterfaceMethod());
|
| }
|
|
|
| @@ -6362,6 +6522,7 @@ static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback
|
| static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Nullable<Vector<int>> result = impl->nullableLongSequenceMethod();
|
| if (result.isNull())
|
| v8SetReturnValueNull(info);
|
| @@ -6377,6 +6538,7 @@ static void nullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackI
|
| static void testInterfaceGarbageCollectedOrDOMStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceGarbageCollectedOrString result;
|
| impl->testInterfaceGarbageCollectedOrDOMStringMethod(result);
|
| v8SetReturnValue(info, result);
|
| @@ -6390,6 +6552,7 @@ static void testInterfaceGarbageCollectedOrDOMStringMethodMethodCallback(const v
|
| static void booleanOrDOMStringOrUnrestrictedDoubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| BooleanOrStringOrUnrestrictedDouble result;
|
| impl->booleanOrDOMStringOrUnrestrictedDoubleMethod(result);
|
| v8SetReturnValue(info, result);
|
| @@ -6403,6 +6566,7 @@ static void booleanOrDOMStringOrUnrestrictedDoubleMethodMethodCallback(const v8:
|
| static void testInterfaceOrLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceOrLong result;
|
| impl->testInterfaceOrLongMethod(result);
|
| v8SetReturnValue(info, result);
|
| @@ -6415,12 +6579,15 @@ static void testInterfaceOrLongMethodMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDoubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDoubleOrDOMStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DoubleOrString arg;
|
| {
|
| V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::NotNullable, exceptionState);
|
| @@ -6437,12 +6604,15 @@ static void voidMethodDoubleOrDOMStringArgMethodCallback(const v8::FunctionCallb
|
|
|
| static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDoubleOrDOMStringOrNullArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDoubleOrDOMStringOrNullArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DoubleOrString arg;
|
| {
|
| V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::Nullable, exceptionState);
|
| @@ -6459,12 +6629,15 @@ static void voidMethodDoubleOrDOMStringOrNullArgMethodCallback(const v8::Functio
|
|
|
| static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDoubleOrNullOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDoubleOrNullOrDOMStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DoubleOrString arg;
|
| {
|
| V8DoubleOrNullOrString::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::Nullable, exceptionState);
|
| @@ -6481,12 +6654,15 @@ static void voidMethodDoubleOrNullOrDOMStringArgMethodCallback(const v8::Functio
|
|
|
| static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| StringOrArrayBufferOrArrayBufferView arg;
|
| {
|
| V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::NotNullable, exceptionState);
|
| @@ -6503,12 +6679,15 @@ static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback(c
|
|
|
| static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ArrayBufferOrArrayBufferViewOrDictionary arg;
|
| {
|
| V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(), info[0], arg, UnionTypeConversionMode::NotNullable, exceptionState);
|
| @@ -6525,8 +6704,10 @@ static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback(
|
|
|
| static void voidMethodArrayOfDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodArrayOfDoubleOrDOMStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodArrayOfDoubleOrDOMStringArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<DoubleOrString> arg;
|
| {
|
| arg = toImplArguments<HeapVector<DoubleOrString>>(info, 0, exceptionState);
|
| @@ -6544,10 +6725,12 @@ static void voidMethodArrayOfDoubleOrDOMStringArgMethodCallback(const v8::Functi
|
| static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTestInterfaceEmptyOrNullArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
|
| {
|
| nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -6567,10 +6750,12 @@ static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
|
| static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTestCallbackInterfaceArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTestCallbackInterfaceArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestCallbackInterface* testCallbackInterfaceArg;
|
| {
|
| if (info.Length() <= 0 || !info[0]->IsFunction()) {
|
| @@ -6590,6 +6775,7 @@ static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
|
| static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestCallbackInterface* optionalTestCallbackInterfaceArg;
|
| {
|
| if (!isUndefinedOrNull(info[0])) {
|
| @@ -6613,10 +6799,12 @@ static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
|
| static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTestCallbackInterfaceOrNullArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestCallbackInterface* testCallbackInterfaceArg;
|
| {
|
| if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) {
|
| @@ -6636,6 +6824,7 @@ static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
|
| static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -6646,12 +6835,15 @@ static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
|
|
|
| static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestEnumArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodTestEnumArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> testEnumTypeArg;
|
| {
|
| testEnumTypeArg = info[0];
|
| @@ -6678,6 +6870,7 @@ static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
|
| static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->dictionaryMethod());
|
| }
|
|
|
| @@ -6689,6 +6882,7 @@ static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void testDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestDictionary result;
|
| impl->testDictionaryMethod(result);
|
| v8SetReturnValue(info, result);
|
| @@ -6702,6 +6896,7 @@ static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8
|
| static void nullableTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Nullable<TestDictionary> result;
|
| impl->nullableTestDictionaryMethod(result);
|
| if (result.isNull())
|
| @@ -6717,8 +6912,10 @@ static void nullableTestDictionaryMethodMethodCallback(const v8::FunctionCallbac
|
|
|
| static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermissiveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "passPermissiveDictionaryMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestDictionary arg;
|
| {
|
| V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState);
|
| @@ -6736,6 +6933,7 @@ static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb
|
| static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->nodeFilterMethod());
|
| }
|
|
|
| @@ -6744,14 +6942,19 @@ static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| TestObjectV8Internal::nodeFilterMethodMethod(info);
|
| }
|
|
|
| -static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState)
|
| +static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "promiseMethod");
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| + ExceptionToPromiseScope exceptionToPromiseScope(info, scriptState, exceptionState);
|
| +
|
| if (UNLIKELY(info.Length() < 3)) {
|
| - setMinimumArityTypeError(exceptionState, 3, info.Length());
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| + throwMinimumArityError(exceptionState, 3, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg1;
|
| Dictionary arg2;
|
| V8StringResource<> arg3;
|
| @@ -6762,7 +6965,6 @@ static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>
|
| return;
|
| if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) {
|
| exceptionState.throwTypeError("parameter 2 ('arg2') is not an object.");
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| return;
|
| }
|
| arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState);
|
| @@ -6778,32 +6980,28 @@ static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>
|
| v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Value());
|
| }
|
|
|
| -static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - promiseMethodMethodPromise(info, exceptionState);
|
| - if (exceptionState.hadException())
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| -}
|
| -
|
| static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObjectV8Internal::promiseMethodMethod(info);
|
| }
|
|
|
| -static void promiseMethodWithoutExceptionStateMethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState)
|
| +static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "promiseMethodWithoutExceptionState");
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| + ExceptionToPromiseScope exceptionToPromiseScope(info, scriptState, exceptionState);
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Dictionary arg1;
|
| {
|
| if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
|
| exceptionState.throwTypeError("parameter 1 ('arg1') is not an object.");
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| return;
|
| }
|
| arg1 = Dictionary(info[0], info.GetIsolate(), exceptionState);
|
| @@ -6813,14 +7011,6 @@ static void promiseMethodWithoutExceptionStateMethodPromise(const v8::FunctionCa
|
| v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Value());
|
| }
|
|
|
| -static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethodWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate());
|
| - promiseMethodWithoutExceptionStateMethodPromise(info, exceptionState);
|
| - if (exceptionState.hadException())
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| -}
|
| -
|
| static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info);
|
| @@ -6829,6 +7019,7 @@ static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC
|
| static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, v8Deserialize(info.GetIsolate(), impl->serializedScriptValueMethod()));
|
| }
|
|
|
| @@ -6840,6 +7031,7 @@ static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
|
| static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->xPathNSResolverMethod());
|
| }
|
|
|
| @@ -6850,12 +7042,15 @@ static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDictionaryArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDictionaryArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Dictionary dictionaryArg;
|
| {
|
| if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
|
| @@ -6877,10 +7072,12 @@ static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
|
| static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodNodeFilterArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodNodeFilterArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| NodeFilter* nodeFilterArg;
|
| {
|
| nodeFilterArg = toNodeFilter(info[0], info.Holder(), ScriptState::current(info.GetIsolate()));
|
| @@ -6896,10 +7093,12 @@ static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
|
| static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodPromiseArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodPromiseArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptPromise promiseArg;
|
| {
|
| promiseArg = ScriptPromise::cast(ScriptState::current(info.GetIsolate()), info[0]);
|
| @@ -6918,12 +7117,15 @@ static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
|
|
|
| static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodSerializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodSerializedScriptValueArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| RefPtr<SerializedScriptValue> serializedScriptValueArg;
|
| {
|
| serializedScriptValueArg = SerializedScriptValue::serialize(info.GetIsolate(), info[0], nullptr, nullptr, exceptionState);
|
| @@ -6941,10 +7143,12 @@ static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
|
| static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodXPathNSResolverArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodXPathNSResolverArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| XPathNSResolver* xPathNSResolverArg;
|
| {
|
| xPathNSResolverArg = toXPathNSResolver(ScriptState::current(info.GetIsolate()), info[0]);
|
| @@ -6963,12 +7167,15 @@ static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
|
|
|
| static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDictionarySequenceArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<Dictionary> dictionarySequenceArg;
|
| {
|
| dictionarySequenceArg = toImplArray<Vector<Dictionary>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -6985,12 +7192,15 @@ static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodStringArgLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - setMinimumArityTypeError(exceptionState, 2, info.Length());
|
| + throwMinimumArityError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| int longArg;
|
| {
|
| @@ -7012,6 +7222,7 @@ static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
|
| static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> optionalStringArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -7039,6 +7250,7 @@ static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
|
| static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -7067,8 +7279,10 @@ static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
|
|
|
| static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodOptionalLongArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int optionalLongArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -7095,8 +7309,10 @@ static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "stringMethodOptionalLongArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int optionalLongArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -7123,8 +7339,10 @@ static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfaceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "testInterfaceEmptyMethodOptionalLongArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int optionalLongArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -7151,8 +7369,10 @@ static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
|
|
|
| static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "longMethodOptionalLongArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int optionalLongArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -7179,12 +7399,15 @@ static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodLongArgOptionalLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| int optionalLongArg;
|
| {
|
| @@ -7215,12 +7438,15 @@ static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
|
|
|
| static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodLongArgOptionalLongArgOptionalLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| int optionalLongArg1;
|
| int optionalLongArg2;
|
| @@ -7259,12 +7485,15 @@ static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
|
|
|
| static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodLongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodLongArgOptionalTestInterfaceEmptyArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| TestInterfaceEmpty* optionalTestInterfaceEmpty;
|
| {
|
| @@ -7297,12 +7526,15 @@ static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
|
|
|
| static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodTestInterfaceEmptyArgOptionalLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* optionalTestInterfaceEmpty;
|
| int longArg;
|
| {
|
| @@ -7335,8 +7567,10 @@ static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
|
|
|
| static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodOptionalDictionaryArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodOptionalDictionaryArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Dictionary optionalDictionaryArg;
|
| {
|
| if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
|
| @@ -7357,8 +7591,10 @@ static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultByteStringArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> defaultByteStringArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7380,6 +7616,7 @@ static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
|
| static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> defaultStringArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7400,8 +7637,10 @@ static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
|
|
|
| static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultIntegerArgs");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int defaultLongArg;
|
| long long defaultLongLongArg;
|
| unsigned defaultUnsignedArg;
|
| @@ -7438,8 +7677,10 @@ static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
|
|
|
| static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultDoubleArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| double defaultDoubleArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7460,8 +7701,10 @@ static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
|
|
|
| static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultTrueBooleanArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultTrueBooleanArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| bool defaultBooleanArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7482,8 +7725,10 @@ static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultFalseBooleanArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultFalseBooleanArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| bool defaultBooleanArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7504,8 +7749,10 @@ static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
|
|
|
| static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultNullableByteStringArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<TreatNullAndUndefinedAsNullString> defaultStringArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7527,6 +7774,7 @@ static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
|
| static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<TreatNullAndUndefinedAsNullString> defaultStringArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7548,6 +7796,7 @@ static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
|
| static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceImplementation* defaultTestInterfaceArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7570,8 +7819,10 @@ static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
|
|
|
| static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultDoubleOrStringArgs", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultDoubleOrStringArgs");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DoubleOrString defaultLongArg;
|
| DoubleOrString defaultStringArg;
|
| DoubleOrString defaultNullArg;
|
| @@ -7608,8 +7859,10 @@ static void voidMethodDefaultDoubleOrStringArgsMethodCallback(const v8::Function
|
|
|
| static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultStringSequenceArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<String> defaultStringSequenceArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -7630,8 +7883,10 @@ static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
|
|
|
| static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodVariadicStringArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<String> variadicStringArgs;
|
| {
|
| variadicStringArgs = toImplArguments<Vector<String>>(info, 0, exceptionState);
|
| @@ -7648,12 +7903,15 @@ static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
|
|
|
| static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodStringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodStringArgVariadicStringArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| Vector<String> variadicStringArgs;
|
| {
|
| @@ -7674,8 +7932,10 @@ static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
|
|
|
| static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodVariadicTestInterfaceEmptyArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceEmpty>> variadicTestInterfaceEmptyArgs;
|
| {
|
| for (int i = 0; i < info.Length(); ++i) {
|
| @@ -7696,12 +7956,15 @@ static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
|
|
|
| static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| HeapVector<Member<TestInterfaceEmpty>> variadicTestInterfaceEmptyArgs;
|
| {
|
| @@ -7728,8 +7991,10 @@ static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
|
|
|
| static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodVariadicTestInterfaceGarbageCollectedArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodVariadicTestInterfaceGarbageCollectedArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceGarbageCollected>> variadicTestInterfaceGarbageCollectedArg;
|
| {
|
| for (int i = 0; i < info.Length(); ++i) {
|
| @@ -7750,8 +8015,10 @@ static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con
|
|
|
| static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodA");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -7763,8 +8030,10 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodA");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg1;
|
| int longArg2;
|
| {
|
| @@ -7802,7 +8071,6 @@ static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -7812,8 +8080,10 @@ static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodB");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -7825,8 +8095,10 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodB");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| int longArg;
|
| {
|
| @@ -7882,7 +8154,6 @@ static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -7892,8 +8163,10 @@ static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodC", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodC");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -7906,6 +8179,7 @@ static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -7939,7 +8213,6 @@ static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -7949,8 +8222,10 @@ static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodD");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -7962,8 +8237,10 @@ static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodD");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Vector<int> longArrayArg;
|
| {
|
| longArrayArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), exceptionState);
|
| @@ -7995,7 +8272,6 @@ static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8005,8 +8281,10 @@ static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodE", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodE");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -8019,6 +8297,7 @@ static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
|
| {
|
| testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -8056,7 +8335,6 @@ static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8067,6 +8345,7 @@ static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -8088,8 +8367,10 @@ static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodF", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodF");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| double doubleArg;
|
| {
|
| doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState);
|
| @@ -8131,7 +8412,6 @@ static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8141,8 +8421,10 @@ static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodG", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodG");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -8155,6 +8437,7 @@ static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
|
| {
|
| if (!info[0]->IsUndefined()) {
|
| @@ -8202,7 +8485,6 @@ static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8213,6 +8495,7 @@ static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceImplementation* testInterfaceArg;
|
| {
|
| testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -8227,6 +8510,7 @@ static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -8260,7 +8544,6 @@ static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8271,6 +8554,7 @@ static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = info[0];
|
| @@ -8282,8 +8566,10 @@ static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodI", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodI");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| double doubleArg;
|
| {
|
| doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState);
|
| @@ -8319,7 +8605,6 @@ static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8330,6 +8615,7 @@ static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = info[0];
|
| @@ -8341,8 +8627,10 @@ static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodJ", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodJ");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestDictionary testDictionaryArg;
|
| {
|
| if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
|
| @@ -8378,7 +8666,6 @@ static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8389,6 +8676,7 @@ static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptValue functionArg;
|
| {
|
| if (!info[0]->IsFunction()) {
|
| @@ -8403,6 +8691,7 @@ static void overloadedMethodK1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = info[0];
|
| @@ -8434,7 +8723,6 @@ static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8444,8 +8732,10 @@ static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
|
|
| static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodL", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodL");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| Vector<ScriptValue> restArgs;
|
| {
|
| @@ -8461,8 +8751,10 @@ static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
|
|
| static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodL", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedMethodL");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| Vector<ScriptValue> restArgs;
|
| {
|
| @@ -8516,7 +8808,6 @@ static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8527,6 +8818,7 @@ static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void overloadedMethodN1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceImplementation* testInterfaceArg;
|
| {
|
| testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -8541,6 +8833,7 @@ static void overloadedMethodN1Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void overloadedMethodN2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestCallbackInterface* testCallbackInterfaceArg;
|
| {
|
| if (info.Length() <= 0 || !info[0]->IsFunction()) {
|
| @@ -8574,7 +8867,6 @@ static void overloadedMethodNMethod(const v8::FunctionCallbackInfo<v8::Value>& i
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedMethodNMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8585,19 +8877,24 @@ static void overloadedMethodNMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value());
|
| }
|
|
|
| -static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState)
|
| +static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "promiseOverloadMethod");
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| + ExceptionToPromiseScope exceptionToPromiseScope(info, scriptState, exceptionState);
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| DOMWindow* arg1;
|
| double arg2;
|
| {
|
| arg1 = toDOMWindow(info.GetIsolate(), info[0]);
|
| if (!arg1) {
|
| exceptionState.throwTypeError("parameter 1 is not of type 'Window'.");
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| return;
|
| }
|
| arg2 = toRestrictedDouble(info.GetIsolate(), info[1], exceptionState);
|
| @@ -8607,24 +8904,20 @@ static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v
|
| v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
|
| }
|
|
|
| -static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - promiseOverloadMethod2MethodPromise(info, exceptionState);
|
| - if (exceptionState.hadException())
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| -}
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "promiseOverloadMethod");
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| + ExceptionToPromiseScope exceptionToPromiseScope(info, scriptState, exceptionState);
|
|
|
| -static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState)
|
| -{
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Document* arg1;
|
| double arg2;
|
| {
|
| arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| if (!arg1) {
|
| exceptionState.throwTypeError("parameter 1 is not of type 'Document'.");
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| return;
|
| }
|
| arg2 = toRestrictedDouble(info.GetIsolate(), info[1], exceptionState);
|
| @@ -8634,14 +8927,6 @@ static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v
|
| v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
|
| }
|
|
|
| -static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - promiseOverloadMethod3MethodPromise(info, exceptionState);
|
| - if (exceptionState.hadException())
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| -}
|
| -
|
| static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| @@ -8664,15 +8949,12 @@ static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value
|
| break;
|
| default:
|
| if (info.Length() >= 0) {
|
| - setArityTypeError(exceptionState, "[0, 2]", info.Length());
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| + throwInvalidArityError(exceptionState, "[0, 2]", info.Length());
|
| return;
|
| }
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| - return;
|
| }
|
|
|
| static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8683,19 +8965,23 @@ static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
| static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->overloadedPerWorldBindingsMethod();
|
| }
|
|
|
| static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->overloadedPerWorldBindingsMethod();
|
| }
|
|
|
| static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedPerWorldBindingsMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -8725,7 +9011,6 @@ static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8735,8 +9020,10 @@ static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
|
|
|
| static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedPerWorldBindingsMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -8766,7 +9053,6 @@ static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8776,7 +9062,8 @@ static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
|
|
|
| static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedStaticMethod");
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -8788,7 +9075,8 @@ static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
|
|
|
| static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "overloadedStaticMethod");
|
| +
|
| int longArg1;
|
| int longArg2;
|
| {
|
| @@ -8826,7 +9114,6 @@ static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -8836,19 +9123,22 @@ static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
|
|
|
| static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "item");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| unsigned index;
|
| {
|
| index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ScriptValue result = impl->item(scriptState, index);
|
| v8SetReturnValue(info, result.v8Value());
|
| }
|
| @@ -8860,12 +9150,16 @@ static void itemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|
| static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "setItem");
|
| +
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - setMinimumArityTypeError(exceptionState, 2, info.Length());
|
| + throwMinimumArityError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| unsigned index;
|
| V8StringResource<> value;
|
| {
|
| @@ -8876,7 +9170,6 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (!value.prepare())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| String result = impl->setItem(scriptState, index, value);
|
| v8SetReturnValueString(info, result, info.GetIsolate());
|
| }
|
| @@ -8888,12 +9181,15 @@ static void setItemMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
|
|
|
| static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodClampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodClampUnsignedShortArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned clampUnsignedShortArg;
|
| {
|
| clampUnsignedShortArg = toUInt16(info.GetIsolate(), info[0], Clamp, exceptionState);
|
| @@ -8910,12 +9206,15 @@ static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
|
|
|
| static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodClampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodClampUnsignedLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| unsigned clampUnsignedLongArg;
|
| {
|
| clampUnsignedLongArg = toUInt32(info.GetIsolate(), info[0], Clamp, exceptionState);
|
| @@ -8933,6 +9232,7 @@ static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
|
| static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg;
|
| {
|
| defaultUndefinedTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -8951,8 +9251,10 @@ static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
|
|
|
| static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodDefaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodDefaultUndefinedLongArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int defaultUndefinedLongArg;
|
| {
|
| defaultUndefinedLongArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -8970,6 +9272,7 @@ static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
|
| static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> defaultUndefinedStringArg;
|
| {
|
| defaultUndefinedStringArg = info[0];
|
| @@ -8986,12 +9289,15 @@ static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
|
|
|
| static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodEnforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodEnforceRangeLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int enforceRangeLongArg;
|
| {
|
| enforceRangeLongArg = toInt32(info.GetIsolate(), info[0], EnforceRange, exceptionState);
|
| @@ -9009,10 +9315,12 @@ static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
|
| static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTreatNullAsEmptyStringStringArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg;
|
| {
|
| treatNullAsEmptyStringStringArg = info[0];
|
| @@ -9030,10 +9338,12 @@ static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu
|
| static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTreatNullAsNullStringStringArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg;
|
| {
|
| treatNullAsNullStringStringArg = info[0];
|
| @@ -9051,10 +9361,12 @@ static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
|
| static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStringArg;
|
| {
|
| treatNullAsNullStringStringArg = info[0];
|
| @@ -9072,6 +9384,7 @@ static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
|
| static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->activityLoggingAccessForAllWorldsMethod();
|
| }
|
|
|
| @@ -9090,6 +9403,7 @@ static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
|
| static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| impl->callWithExecutionContextVoidMethod(executionContext);
|
| }
|
| @@ -9102,6 +9416,7 @@ static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
|
| static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| impl->callWithScriptStateVoidMethod(scriptState);
|
| }
|
| @@ -9114,6 +9429,7 @@ static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
|
| static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| int result = impl->callWithScriptStateLongMethod(scriptState);
|
| v8SetReturnValueInt(info, result);
|
| @@ -9127,6 +9443,7 @@ static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
|
| static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| impl->callWithScriptStateExecutionContextVoidMethod(scriptState, executionContext);
|
| @@ -9140,6 +9457,7 @@ static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
|
| static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 0));
|
| impl->callWithScriptStateScriptArgumentsVoidMethod(scriptState, scriptArguments);
|
| @@ -9152,8 +9470,11 @@ static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
|
|
|
| static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| bool optionalBooleanArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -9163,7 +9484,6 @@ static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
|
| --numArgsPassed;
|
| }
|
| if (UNLIKELY(numArgsPassed <= 0)) {
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 1));
|
| impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptState, scriptArguments);
|
| return;
|
| @@ -9172,7 +9492,6 @@ static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
|
| if (exceptionState.hadException())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ScriptArguments* scriptArguments(ScriptArguments::create(scriptState, info, 1));
|
| impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(scriptState, scriptArguments, optionalBooleanArg);
|
| }
|
| @@ -9185,6 +9504,7 @@ static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
|
| static void callWithCurrentWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->callWithCurrentWindow(currentDOMWindow(info.GetIsolate()));
|
| }
|
|
|
| @@ -9196,6 +9516,7 @@ static void callWithCurrentWindowMethodCallback(const v8::FunctionCallbackInfo<v
|
| static void callWithCurrentWindowScriptWindowMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->callWithCurrentWindowScriptWindow(currentDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()));
|
| }
|
|
|
| @@ -9207,6 +9528,7 @@ static void callWithCurrentWindowScriptWindowMethodCallback(const v8::FunctionCa
|
| static void callWithThisValueMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| impl->callWithThisValue(ScriptValue(scriptState, info.Holder()));
|
| }
|
| @@ -9219,10 +9541,12 @@ static void callWithThisValueMethodCallback(const v8::FunctionCallbackInfo<v8::V
|
| static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| if (!BindingSecurity::shouldAllowAccessTo(currentDOMWindow(info.GetIsolate()), impl->checkSecurityForNodeVoidMethod(), exceptionState)) {
|
| v8SetReturnValueNull(info);
|
| return;
|
| }
|
| +
|
| impl->checkSecurityForNodeVoidMethod();
|
| }
|
|
|
| @@ -9239,6 +9563,7 @@ static void customVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void customCallPrologueVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8TestObject::customCallPrologueVoidMethodMethodPrologueCustom(info, impl);
|
| impl->customCallPrologueVoidMethod();
|
| }
|
| @@ -9251,6 +9576,7 @@ static void customCallPrologueVoidMethodMethodCallback(const v8::FunctionCallbac
|
| static void customCallEpilogueVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->customCallEpilogueVoidMethod();
|
| V8TestObject::customCallEpilogueVoidMethodMethodEpilogueCustom(info, impl);
|
| }
|
| @@ -9263,7 +9589,9 @@ static void customCallEpilogueVoidMethodMethodCallback(const v8::FunctionCallbac
|
| static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
|
| +
|
| impl->customElementCallbacksVoidMethod();
|
| }
|
|
|
| @@ -9275,6 +9603,7 @@ static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
|
| static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->deprecatedVoidMethod();
|
| }
|
|
|
| @@ -9287,6 +9616,7 @@ static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
|
| static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->implementedAsMethodName();
|
| }
|
|
|
| @@ -9298,6 +9628,7 @@ static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
|
| static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->measureAsVoidMethod();
|
| }
|
|
|
| @@ -9310,6 +9641,7 @@ static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
|
| static void measureMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->measureMethod();
|
| }
|
|
|
| @@ -9322,13 +9654,16 @@ static void measureMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
|
| static void measureOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->measureOverloadedMethod();
|
| }
|
|
|
| static void measureOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "measureOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9360,7 +9695,6 @@ static void measureOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::Val
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void measureOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9371,13 +9705,16 @@ static void measureOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo
|
| static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->DeprecateAsOverloadedMethod();
|
| }
|
|
|
| static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "DeprecateAsOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9409,7 +9746,6 @@ static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9420,13 +9756,16 @@ static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
|
| static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->DeprecateAsSameValueOverloadedMethod();
|
| }
|
|
|
| static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "DeprecateAsSameValueOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9457,7 +9796,6 @@ static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9468,13 +9806,16 @@ static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
|
| static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->measureAsOverloadedMethod();
|
| }
|
|
|
| static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "measureAsOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9506,7 +9847,6 @@ static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9517,13 +9857,16 @@ static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
|
| static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->measureAsSameValueOverloadedMethod();
|
| }
|
|
|
| static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "measureAsSameValueOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9555,7 +9898,6 @@ static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9566,13 +9908,16 @@ static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
|
| static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->deprecateAsMeasureAsSameValueOverloadedMethod();
|
| }
|
|
|
| static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAsMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "deprecateAsMeasureAsSameValueOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9606,7 +9951,6 @@ static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9617,13 +9961,16 @@ static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
|
| static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->deprecateAsSameValueMeasureAsOverloadedMethod();
|
| }
|
|
|
| static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAsSameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "deprecateAsSameValueMeasureAsOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9656,7 +10003,6 @@ static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9667,13 +10013,16 @@ static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
|
| static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
|
| }
|
|
|
| static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAsSameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "deprecateAsSameValueMeasureAsSameValueOverloadedMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int arg;
|
| {
|
| arg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -9706,7 +10055,6 @@ static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -9717,6 +10065,7 @@ static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
|
| static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->notEnumerableVoidMethod();
|
| }
|
|
|
| @@ -9728,6 +10077,7 @@ static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
|
| static void originTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->originTrialEnabledVoidMethod();
|
| }
|
|
|
| @@ -9739,6 +10089,7 @@ static void originTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbac
|
| static void perWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->perWorldBindingsOriginTrialEnabledVoidMethod();
|
| }
|
|
|
| @@ -9750,6 +10101,7 @@ static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8:
|
| static void perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->perWorldBindingsOriginTrialEnabledVoidMethod();
|
| }
|
|
|
| @@ -9761,6 +10113,7 @@ static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWor
|
| static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->perWorldBindingsVoidMethod();
|
| }
|
|
|
| @@ -9772,6 +10125,7 @@ static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
|
| static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->perWorldBindingsVoidMethod();
|
| }
|
|
|
| @@ -9783,10 +10137,12 @@ static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
|
| static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "perWorldBindingsVoidMethodTestInterfaceEmptyArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -9806,10 +10162,12 @@ static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
|
| static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "perWorldBindingsVoidMethodTestInterfaceEmptyArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -9830,7 +10188,7 @@ void postMessageImpl(const char* interfaceName, TestObject* instance, const v8::
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "postMessage", interfaceName, info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| Transferables transferables;
|
| @@ -9856,6 +10214,7 @@ static void postMessageMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
|
| static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
|
| }
|
|
|
| @@ -9874,6 +10233,7 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
|
| static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
|
| }
|
|
|
| @@ -9892,6 +10252,7 @@ static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
|
| static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
|
| }
|
|
|
| @@ -9910,6 +10271,7 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
|
| static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
|
| }
|
|
|
| @@ -9920,8 +10282,10 @@ static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
|
|
|
| static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionVoidMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->raisesExceptionVoidMethod(exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -9935,8 +10299,10 @@ static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
|
|
|
| static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionStringMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionStringMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| String result = impl->raisesExceptionStringMethod(exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -9951,8 +10317,10 @@ static void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallback
|
|
|
| static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionVoidMethodOptionalLongArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int optionalLongArg;
|
| {
|
| int numArgsPassed = info.Length();
|
| @@ -9985,12 +10353,15 @@ static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
|
|
|
| static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionVoidMethodTestCallbackInterfaceArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestCallbackInterface* testCallbackInterfaceArg;
|
| {
|
| if (info.Length() <= 0 || !info[0]->IsFunction()) {
|
| @@ -10012,8 +10383,10 @@ static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
|
|
|
| static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestCallbackInterface* optionalTestCallbackInterfaceArg;
|
| {
|
| if (!isUndefinedOrNull(info[0])) {
|
| @@ -10039,8 +10412,10 @@ static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
|
|
|
| static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionTestInterfaceEmptyVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionTestInterfaceEmptyVoidMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* result = impl->raisesExceptionTestInterfaceEmptyVoidMethod(exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10055,8 +10430,10 @@ static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
|
|
|
| static void raisesExceptionXPathNSResolverVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExceptionXPathNSResolverVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "raisesExceptionXPathNSResolverVoidMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| XPathNSResolver* result = impl->raisesExceptionXPathNSResolverVoidMethod(exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10071,12 +10448,15 @@ static void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::Fun
|
|
|
| static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExecutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "callWithExecutionContextRaisesExceptionVoidMethodLongArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -10098,6 +10478,7 @@ static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
|
| static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->runtimeEnabledVoidMethod();
|
| }
|
|
|
| @@ -10109,6 +10490,7 @@ static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
|
| static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->perWorldBindingsRuntimeEnabledVoidMethod();
|
| }
|
|
|
| @@ -10120,6 +10502,7 @@ static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
|
| static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->perWorldBindingsRuntimeEnabledVoidMethod();
|
| }
|
|
|
| @@ -10131,6 +10514,7 @@ static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
|
| static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = info[0];
|
| @@ -10142,8 +10526,10 @@ static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback
|
|
|
| static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "runtimeEnabledOverloadedVoidMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| {
|
| longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -10179,7 +10565,6 @@ static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -10190,6 +10575,7 @@ static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC
|
| static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> stringArg;
|
| {
|
| stringArg = info[0];
|
| @@ -10202,6 +10588,7 @@ static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio
|
| static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceImplementation* testInterfaceArg;
|
| {
|
| testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -10215,8 +10602,10 @@ static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio
|
|
|
| static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRuntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "partiallyRuntimeEnabledOverloadedVoidMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| V8StringResource<> stringArg;
|
| {
|
| @@ -10232,8 +10621,10 @@ static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio
|
|
|
| static void partiallyRuntimeEnabledOverloadedVoidMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRuntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "partiallyRuntimeEnabledOverloadedVoidMethod");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int longArg;
|
| V8StringResource<> stringArg;
|
| TestInterfaceImplementation* testInterfaceArg;
|
| @@ -10312,7 +10703,6 @@ static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function
|
| return;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - return;
|
| }
|
|
|
| static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| @@ -10323,10 +10713,12 @@ static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::
|
| static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceEmpty* testInterfaceEmptyArg;
|
| {
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -10341,8 +10733,10 @@ static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCall
|
|
|
| static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArg");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyArg;
|
| {
|
| for (int i = 0; i < info.Length(); ++i) {
|
| @@ -10364,10 +10758,12 @@ static void legacyInterfaceTypeCheckingVoidMethodTestInterfaceEmptyVariadicArgMe
|
| static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Node* node1;
|
| Node* node2;
|
| {
|
| @@ -10403,10 +10799,12 @@ static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(c
|
| static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", 2, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", 2, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Node* node1;
|
| Node* node2;
|
| {
|
| @@ -10432,10 +10830,12 @@ static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(c
|
| static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Node* node1;
|
| Node* node2;
|
| {
|
| @@ -10461,6 +10861,7 @@ static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback(
|
| static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| impl->unforgeableVoidMethod();
|
| }
|
|
|
| @@ -10471,12 +10872,15 @@ static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
|
|
|
| static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodTestInterfaceGarbageCollectedSequenceArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollectedSequenceArg;
|
| {
|
| testInterfaceGarbageCollectedSequenceArg = (toMemberNativeArray<TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState));
|
| @@ -10493,12 +10897,15 @@ static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
|
|
|
| static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodTestInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "voidMethodTestInterfaceGarbageCollectedArrayArg");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollectedArrayArg;
|
| {
|
| testInterfaceGarbageCollectedArrayArg = (toMemberNativeArray<TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState));
|
| @@ -10516,6 +10923,7 @@ static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
|
| static void newObjectTestInterfaceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| TestInterfaceImplementation* result = impl->newObjectTestInterfaceMethod();
|
| // [NewObject] must always create a new wrapper. Check that a wrapper
|
| // does not exist yet.
|
| @@ -10531,6 +10939,7 @@ static void newObjectTestInterfaceMethodMethodCallback(const v8::FunctionCallbac
|
| static void serializerMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -10542,6 +10951,7 @@ static void serializerMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
|
| static void voidMethodImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl);
|
| }
|
|
|
| @@ -10553,6 +10963,7 @@ static void voidMethodImplementedInPrivateScriptMethodCallback(const v8::Functio
|
| static void shortMethodImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int result = 0;
|
| if (!V8TestObject::PrivateScript::shortMethodImplementedInPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result))
|
| return;
|
| @@ -10566,12 +10977,15 @@ static void shortMethodImplementedInPrivateScriptMethodCallback(const v8::Functi
|
|
|
| static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethodWithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "shortMethodWithShortArgumentImplementedInPrivateScript");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int value;
|
| {
|
| value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| @@ -10592,10 +11006,12 @@ static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback
|
| static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "stringMethodWithStringArgumentImplementedInPrivateScript", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| V8StringResource<> value;
|
| {
|
| value = info[0];
|
| @@ -10616,10 +11032,12 @@ static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba
|
| static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "nodeMethodWithNodeArgumentImplementedInPrivateScript", "TestObject", 1, info.Length()));
|
| + throwMinimumArityErrorForMethod(info.GetIsolate(), "TestObject", "nodeMethodWithNodeArgumentImplementedInPrivateScript", 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Node* value;
|
| {
|
| value = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| @@ -10641,12 +11059,15 @@ static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback(c
|
|
|
| static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodWithVariousArgumentsImplementedInPrivateScript", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "nodeMethodWithVariousArgumentsImplementedInPrivateScript");
|
| +
|
| if (UNLIKELY(info.Length() < 5)) {
|
| - setMinimumArityTypeError(exceptionState, 5, info.Length());
|
| + throwMinimumArityError(exceptionState, 5, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| Document* document;
|
| Node* node;
|
| int value1;
|
| @@ -10686,12 +11107,15 @@ static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethodCallba
|
|
|
| static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImplementedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "methodImplementedInCPPForPrivateScriptOnly");
|
| +
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - setMinimumArityTypeError(exceptionState, 2, info.Length());
|
| + throwMinimumArityError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| int value1;
|
| int value2;
|
| {
|
| @@ -10712,8 +11136,10 @@ static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F
|
|
|
| static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "keys", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "keys");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| Iterator* result = impl->keysForBinding(scriptState, exceptionState);
|
| if (exceptionState.hadException()) {
|
| @@ -10729,8 +11155,10 @@ static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|
| static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "values", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "values");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| Iterator* result = impl->valuesForBinding(scriptState, exceptionState);
|
| if (exceptionState.hadException()) {
|
| @@ -10746,8 +11174,10 @@ static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
|
|
|
| static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "entries", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "entries");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| Iterator* result = impl->entriesForBinding(scriptState, exceptionState);
|
| if (exceptionState.hadException()) {
|
| @@ -10763,12 +11193,16 @@ static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
|
|
|
| static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "forEach", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "forEach");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ScriptValue callback;
|
| ScriptValue thisArg;
|
| {
|
| @@ -10779,7 +11213,6 @@ static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
|
| thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]);
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()), callback, thisArg, exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10793,19 +11226,22 @@ static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf
|
|
|
| static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "has", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "has");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| int key;
|
| {
|
| key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| bool result = impl->hasForBinding(scriptState, key, exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10820,19 +11256,22 @@ static void hasMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|
| static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "get", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "get");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| int key;
|
| {
|
| key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| ScriptValue result = impl->getForBinding(scriptState, key, exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10847,8 +11286,10 @@ static void getMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|
| static void clearMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "clear", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "clear");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| impl->clearForBinding(scriptState, exceptionState);
|
| if (exceptionState.hadException()) {
|
| @@ -10863,19 +11304,22 @@ static void clearMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|
| static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "delete", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "delete");
|
| +
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| + throwMinimumArityError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| int key;
|
| {
|
| key = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| bool result = impl->deleteForBinding(scriptState, key, exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10890,12 +11334,16 @@ static void deleteMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
|
|
|
| static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "set", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "set");
|
| +
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - setMinimumArityTypeError(exceptionState, 2, info.Length());
|
| + throwMinimumArityError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| + ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| int key;
|
| StringOrDouble value;
|
| {
|
| @@ -10906,7 +11354,6 @@ static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (exceptionState.hadException())
|
| return;
|
| }
|
| - ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| TestObject* result = impl->setForBinding(scriptState, key, value, exceptionState);
|
| if (exceptionState.hadException()) {
|
| return;
|
| @@ -10922,6 +11369,7 @@ static void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->serializerMethod(), info.GetIsolate());
|
| }
|
|
|
| @@ -10933,6 +11381,7 @@ static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
|
| static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate());
|
| }
|
|
|
| @@ -10943,8 +11392,10 @@ static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
|
|
|
| static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestObject", info.Holder(), info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestObject", "iterator");
|
| +
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| +
|
| ScriptState* scriptState = ScriptState::forReceiverObject(info);
|
| Iterator* result = impl->iterator(scriptState, exceptionState);
|
| if (exceptionState.hadException()) {
|
|
|