Skip to content

Commit 77272e7

Browse files
committed
added import _Concurrency in JSPromise
1 parent d9c4d6d commit 77272e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/JavaScriptKit/BasicObjects/JSPromise.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if hasFeature(Embedded) && os(WASI)
2+
import _Concurrency
3+
#endif
4+
15
/// A wrapper around [the JavaScript `Promise` class](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
26
public final class JSPromise: JSBridgedClass {
37
/// The underlying JavaScript `Promise` object.

0 commit comments

Comments
 (0)