File tree 4 files changed +7
-7
lines changed
firebase-app/src/jsTest/kotlin/dev/gitlive/firebase
firebase-auth/src/jsTest/kotlin/dev/gitlive/firebase/auth
firebase-config/src/jsTest/kotlin/dev/gitlive/firebase/remoteconfig
firebase-firestore/src/jsTest/kotlin/dev/gitlive/firebase/firestore
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
14
14
try {
15
15
test()
16
16
} catch (e: dynamic ) {
17
- e .log()
17
+ (e as ? Throwable )? .log()
18
18
throw e
19
19
}
20
20
}.asDynamic()
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
15
15
.promise {
16
16
try {
17
17
test()
18
- } catch (e: Throwable ) {
19
- e .log()
18
+ } catch (e: dynamic ) {
19
+ (e as ? Throwable )? .log()
20
20
throw e
21
21
}
22
22
}.asDynamic()
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ actual fun runTest(test: suspend () -> Unit) = GlobalScope
9
9
.promise {
10
10
try {
11
11
test()
12
- } catch (e: Throwable ) {
13
- e .log()
12
+ } catch (e: dynamic ) {
13
+ (e as ? Throwable )? .log()
14
14
throw e
15
15
}
16
16
}.asDynamic()
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ actual fun runTest(test: suspend CoroutineScope.() -> Unit) = GlobalScope
16
16
.promise {
17
17
try {
18
18
test()
19
- } catch (e: Throwable ) {
20
- e .log()
19
+ } catch (e: dynamic ) {
20
+ (e as ? Throwable )? .log()
21
21
throw e
22
22
}
23
23
}.asDynamic()
You can’t perform that action at this time.
0 commit comments