rra/ilgonmic/after-test-promise

[JS] Node downloading for js ir integration kotlin test

[JS] Fix API of Promise

[JS IR] Promise symbol as lazy2

[JS] Support legacy compiler aftertest with promises

[JS IR] Generate finally for promised tests

[JS] Setup it tests for JS IR kotlin-test

Merge-request: KT-MR-5168

^KT-49738 fixed
This commit is contained in:
Ilya Goncharov
2021-12-08 08:22:53 +00:00
committed by Space
parent bdeae7668e
commit 0c74376cc4
13 changed files with 258 additions and 11 deletions
+2
View File
@@ -283,6 +283,8 @@ public open external class Promise<out T> {
public open fun <S> catch(onRejected: (kotlin.Throwable) -> S): kotlin.js.Promise<S>
public open fun finally(onFinally: () -> kotlin.Unit): kotlin.js.Promise<T>
@kotlin.internal.LowPriorityInOverloadResolution
public open fun <S> then(onFulfilled: ((T) -> S)?): kotlin.js.Promise<S>
+2
View File
@@ -282,6 +282,8 @@ public open external class Promise<out T> {
public open fun <S> catch(onRejected: (kotlin.Throwable) -> S): kotlin.js.Promise<S>
public open fun finally(onFinally: () -> kotlin.Unit): kotlin.js.Promise<T>
@kotlin.internal.LowPriorityInOverloadResolution
public open fun <S> then(onFulfilled: ((T) -> S)?): kotlin.js.Promise<S>