We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d590528 commit e2f569aCopy full SHA for e2f569a
Sources/JavaScriptKit/FundamentalObjects/JSObject.swift
@@ -1,7 +1,9 @@
1
import _CJavaScriptKit
2
3
-#if canImport(wasi_pthread)
4
- import wasi_pthread
+#if arch(wasm32)
+ #if canImport(wasi_pthread)
5
+ import wasi_pthread
6
+ #endif
7
#else
8
import Foundation // for pthread_t on non-wasi platforms
9
#endif
Sources/JavaScriptKit/ThreadLocal.swift
@@ -1,4 +1,4 @@
-#if os(WASI)
#if canImport(wasi_pthread)
import wasi_pthread
0 commit comments