|
Lines 7159-7165
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAny(ExecState* state)
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec1
|
| 7159 |
return JSValue::encode(jsUndefined()); |
7159 |
return JSValue::encode(jsUndefined()); |
| 7160 |
} |
7160 |
} |
| 7161 |
|
7161 |
|
| 7162 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7162 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState*, DOMGenericPromise&&); |
| 7163 |
|
7163 |
|
| 7164 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecState* state) |
7164 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecState* state) |
| 7165 |
{ |
7165 |
{ |
|
Lines 7167-7173
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunction(ExecS
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec2
|
| 7167 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
7167 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7168 |
} |
7168 |
} |
| 7169 |
|
7169 |
|
| 7170 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7170 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromise(ExecState* state, DOMGenericPromise&& promise) |
| 7171 |
{ |
7171 |
{ |
| 7172 |
VM& vm = state->vm(); |
7172 |
VM& vm = state->vm(); |
| 7173 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7173 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7178-7188
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionPromis
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec3
|
| 7178 |
return throwThisTypeError(*state, throwScope, "TestObject", "testPromiseFunction"); |
7178 |
return throwThisTypeError(*state, throwScope, "TestObject", "testPromiseFunction"); |
| 7179 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
7179 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
| 7180 |
auto& impl = castedThis->wrapped(); |
7180 |
auto& impl = castedThis->wrapped(); |
| 7181 |
impl.testPromiseFunction(WTFMove(deferredWrapper)); |
7181 |
impl.testPromiseFunction(WTFMove(promise)); |
| 7182 |
return JSValue::encode(jsUndefined()); |
7182 |
return JSValue::encode(jsUndefined()); |
| 7183 |
} |
7183 |
} |
| 7184 |
|
7184 |
|
| 7185 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState*, Ref<DeferredWrapper>&&); |
7185 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState*, DOMGenericPromise&&); |
| 7186 |
|
7186 |
|
| 7187 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgument(ExecState* state) |
7187 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgument(ExecState* state) |
| 7188 |
{ |
7188 |
{ |
|
Lines 7190-7196
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithFl
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec4
|
| 7190 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise, PromiseExecutionScope::WindowOnly>(*state)); |
7190 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7191 |
} |
7191 |
} |
| 7192 |
|
7192 |
|
| 7193 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7193 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise(ExecState* state, DOMGenericPromise&& promise) |
| 7194 |
{ |
7194 |
{ |
| 7195 |
VM& vm = state->vm(); |
7195 |
VM& vm = state->vm(); |
| 7196 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7196 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7206-7216
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithFl
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec5
|
| 7206 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
7206 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
| 7207 |
if (UNLIKELY(throwScope.exception())) |
7207 |
if (UNLIKELY(throwScope.exception())) |
| 7208 |
return JSValue::encode(jsUndefined()); |
7208 |
return JSValue::encode(jsUndefined()); |
| 7209 |
impl.testPromiseFunctionWithFloatArgument(WTFMove(a), WTFMove(deferredWrapper)); |
7209 |
impl.testPromiseFunctionWithFloatArgument(WTFMove(a), WTFMove(promise)); |
| 7210 |
return JSValue::encode(jsUndefined()); |
7210 |
return JSValue::encode(jsUndefined()); |
| 7211 |
} |
7211 |
} |
| 7212 |
|
7212 |
|
| 7213 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7213 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState*, DOMGenericPromise&&); |
| 7214 |
|
7214 |
|
| 7215 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithException(ExecState* state) |
7215 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithException(ExecState* state) |
| 7216 |
{ |
7216 |
{ |
|
Lines 7218-7224
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithEx
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec6
|
| 7218 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
7218 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7219 |
} |
7219 |
} |
| 7220 |
|
7220 |
|
| 7221 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7221 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise(ExecState* state, DOMGenericPromise&& promise) |
| 7222 |
{ |
7222 |
{ |
| 7223 |
VM& vm = state->vm(); |
7223 |
VM& vm = state->vm(); |
| 7224 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7224 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7230-7241
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithEx
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec7
|
| 7230 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
7230 |
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info()); |
| 7231 |
auto& impl = castedThis->wrapped(); |
7231 |
auto& impl = castedThis->wrapped(); |
| 7232 |
ExceptionCode ec = 0; |
7232 |
ExceptionCode ec = 0; |
| 7233 |
impl.testPromiseFunctionWithException(WTFMove(deferredWrapper), ec); |
7233 |
impl.testPromiseFunctionWithException(WTFMove(promise), ec); |
| 7234 |
setDOMException(state, ec); |
7234 |
setDOMException(state, ec); |
| 7235 |
return JSValue::encode(jsUndefined()); |
7235 |
return JSValue::encode(jsUndefined()); |
| 7236 |
} |
7236 |
} |
| 7237 |
|
7237 |
|
| 7238 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState*, Ref<DeferredWrapper>&&); |
7238 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState*, DOMGenericPromise&&); |
| 7239 |
|
7239 |
|
| 7240 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgument(ExecState* state) |
7240 |
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgument(ExecState* state) |
| 7241 |
{ |
7241 |
{ |
|
Lines 7243-7249
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseFunctionWithOp
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec8
|
| 7243 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise, PromiseExecutionScope::WindowOnly>(*state)); |
7243 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7244 |
} |
7244 |
} |
| 7245 |
|
7245 |
|
| 7246 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7246 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise(ExecState* state, DOMGenericPromise&& promise) |
| 7247 |
{ |
7247 |
{ |
| 7248 |
VM& vm = state->vm(); |
7248 |
VM& vm = state->vm(); |
| 7249 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7249 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7257-7267
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseFunctionWithOp
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec9
|
| 7257 |
auto a = state->argument(0).isUndefined() ? Optional<int32_t>() : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
7257 |
auto a = state->argument(0).isUndefined() ? Optional<int32_t>() : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
| 7258 |
if (UNLIKELY(throwScope.exception())) |
7258 |
if (UNLIKELY(throwScope.exception())) |
| 7259 |
return JSValue::encode(jsUndefined()); |
7259 |
return JSValue::encode(jsUndefined()); |
| 7260 |
impl.testPromiseFunctionWithOptionalIntArgument(WTFMove(a), WTFMove(deferredWrapper)); |
7260 |
impl.testPromiseFunctionWithOptionalIntArgument(WTFMove(a), WTFMove(promise)); |
| 7261 |
return JSValue::encode(jsUndefined()); |
7261 |
return JSValue::encode(jsUndefined()); |
| 7262 |
} |
7262 |
} |
| 7263 |
|
7263 |
|
| 7264 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState*, Ref<DeferredWrapper>&&); |
7264 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState*, DOMGenericPromise&&); |
| 7265 |
|
7265 |
|
| 7266 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1(ExecState* state) |
7266 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1(ExecState* state) |
| 7267 |
{ |
7267 |
{ |
|
Lines 7269-7275
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec10
|
| 7269 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise, PromiseExecutionScope::WindowOnly>(*state)); |
7269 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7270 |
} |
7270 |
} |
| 7271 |
|
7271 |
|
| 7272 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7272 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise(ExecState* state, DOMGenericPromise&& promise) |
| 7273 |
{ |
7273 |
{ |
| 7274 |
VM& vm = state->vm(); |
7274 |
VM& vm = state->vm(); |
| 7275 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7275 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7285-7295
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec11
|
| 7285 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
7285 |
auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No); |
| 7286 |
if (UNLIKELY(throwScope.exception())) |
7286 |
if (UNLIKELY(throwScope.exception())) |
| 7287 |
return JSValue::encode(jsUndefined()); |
7287 |
return JSValue::encode(jsUndefined()); |
| 7288 |
impl.testPromiseOverloadedFunction(WTFMove(a), WTFMove(deferredWrapper)); |
7288 |
impl.testPromiseOverloadedFunction(WTFMove(a), WTFMove(promise)); |
| 7289 |
return JSValue::encode(jsUndefined()); |
7289 |
return JSValue::encode(jsUndefined()); |
| 7290 |
} |
7290 |
} |
| 7291 |
|
7291 |
|
| 7292 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState*, Ref<DeferredWrapper>&&); |
7292 |
static EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState*, DOMGenericPromise&&); |
| 7293 |
|
7293 |
|
| 7294 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2(ExecState* state) |
7294 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2(ExecState* state) |
| 7295 |
{ |
7295 |
{ |
|
Lines 7297-7303
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec12
|
| 7297 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise, PromiseExecutionScope::WindowOnly>(*state)); |
7297 |
return JSValue::encode(callPromiseFunction<jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7298 |
} |
7298 |
} |
| 7299 |
|
7299 |
|
| 7300 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7300 |
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise(ExecState* state, DOMGenericPromise&& promise) |
| 7301 |
{ |
7301 |
{ |
| 7302 |
VM& vm = state->vm(); |
7302 |
VM& vm = state->vm(); |
| 7303 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7303 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
|
Lines 7313-7319
static inline EncodedJSValue jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec13
|
| 7313 |
auto request = JSFetchRequest::toWrapped(state->argument(0)); |
7313 |
auto request = JSFetchRequest::toWrapped(state->argument(0)); |
| 7314 |
if (UNLIKELY(!request)) |
7314 |
if (UNLIKELY(!request)) |
| 7315 |
return throwArgumentTypeError(*state, throwScope, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest"); |
7315 |
return throwArgumentTypeError(*state, throwScope, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest"); |
| 7316 |
impl.testPromiseOverloadedFunction(*request, WTFMove(deferredWrapper)); |
7316 |
impl.testPromiseOverloadedFunction(*request, WTFMove(promise)); |
| 7317 |
return JSValue::encode(jsUndefined()); |
7317 |
return JSValue::encode(jsUndefined()); |
| 7318 |
} |
7318 |
} |
| 7319 |
|
7319 |
|
|
Lines 7334-7340
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestPromiseOverloadedFunc
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec14
|
| 7334 |
return argsCount < 1 ? throwVMError(state, throwScope, createNotEnoughArgumentsError(state)) : throwVMTypeError(state, throwScope); |
7334 |
return argsCount < 1 ? throwVMError(state, throwScope, createNotEnoughArgumentsError(state)) : throwVMTypeError(state, throwScope); |
| 7335 |
} |
7335 |
} |
| 7336 |
|
7336 |
|
| 7337 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7337 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState*, DOMGenericPromise&&); |
| 7338 |
|
7338 |
|
| 7339 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunction(ExecState* state) |
7339 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunction(ExecState* state) |
| 7340 |
{ |
7340 |
{ |
|
Lines 7342-7357
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFuncti
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec15
|
| 7342 |
return JSValue::encode(callPromiseFunction<jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
7342 |
return JSValue::encode(callPromiseFunction<jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7343 |
} |
7343 |
} |
| 7344 |
|
7344 |
|
| 7345 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7345 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionPromise(ExecState* state, DOMGenericPromise&& promise) |
| 7346 |
{ |
7346 |
{ |
| 7347 |
VM& vm = state->vm(); |
7347 |
VM& vm = state->vm(); |
| 7348 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7348 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 7349 |
UNUSED_PARAM(throwScope); |
7349 |
UNUSED_PARAM(throwScope); |
| 7350 |
TestObj::testStaticPromiseFunction(WTFMove(deferredWrapper)); |
7350 |
TestObj::testStaticPromiseFunction(WTFMove(promise)); |
| 7351 |
return JSValue::encode(jsUndefined()); |
7351 |
return JSValue::encode(jsUndefined()); |
| 7352 |
} |
7352 |
} |
| 7353 |
|
7353 |
|
| 7354 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState*, Ref<DeferredWrapper>&&); |
7354 |
static EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState*, DOMGenericPromise&&); |
| 7355 |
|
7355 |
|
| 7356 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunctionWithException(ExecState* state) |
7356 |
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunctionWithException(ExecState* state) |
| 7357 |
{ |
7357 |
{ |
|
Lines 7359-7371
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFuncti
a/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp_sec16
|
| 7359 |
return JSValue::encode(callPromiseFunction<jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
7359 |
return JSValue::encode(callPromiseFunction<jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| 7360 |
} |
7360 |
} |
| 7361 |
|
7361 |
|
| 7362 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState* state, Ref<DeferredWrapper>&& deferredWrapper) |
7362 |
static inline EncodedJSValue jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise(ExecState* state, DOMGenericPromise&& promise) |
| 7363 |
{ |
7363 |
{ |
| 7364 |
VM& vm = state->vm(); |
7364 |
VM& vm = state->vm(); |
| 7365 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
7365 |
auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 7366 |
UNUSED_PARAM(throwScope); |
7366 |
UNUSED_PARAM(throwScope); |
| 7367 |
ExceptionCode ec = 0; |
7367 |
ExceptionCode ec = 0; |
| 7368 |
TestObj::testStaticPromiseFunctionWithException(WTFMove(deferredWrapper), ec); |
7368 |
TestObj::testStaticPromiseFunctionWithException(WTFMove(promise), ec); |
| 7369 |
setDOMException(state, ec); |
7369 |
setDOMException(state, ec); |
| 7370 |
return JSValue::encode(jsUndefined()); |
7370 |
return JSValue::encode(jsUndefined()); |
| 7371 |
} |
7371 |
} |