From 77272e73c94a53435da63f515d783417ef364e5a Mon Sep 17 00:00:00 2001 From: Simon Leeb <52261246+sliemeobn@users.noreply.github.com> Date: Tue, 26 Aug 2025 13:37:51 +0200 Subject: [PATCH] added `import _Concurrency` in JSPromise --- Sources/JavaScriptKit/BasicObjects/JSPromise.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/JavaScriptKit/BasicObjects/JSPromise.swift b/Sources/JavaScriptKit/BasicObjects/JSPromise.swift index 201e8fa6..ee43f87f 100644 --- a/Sources/JavaScriptKit/BasicObjects/JSPromise.swift +++ b/Sources/JavaScriptKit/BasicObjects/JSPromise.swift @@ -1,3 +1,7 @@ +#if hasFeature(Embedded) && os(WASI) +import _Concurrency +#endif + /// A wrapper around [the JavaScript `Promise` class](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise) public final class JSPromise: JSBridgedClass { /// The underlying JavaScript `Promise` object.