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
@@ -20,6 +20,8 @@ public open external class Promise<out T>(executor: (resolve: (T) -> Unit, rejec
public open fun <S> catch(onRejected: (Throwable) -> S): Promise<S>
public open fun finally(onFinally: () -> Unit): Promise<T>
companion object {
public fun <S> all(promise: Array<out Promise<S>>): Promise<Array<out S>>