From f6056988e038467ea312f552d950aeb73cf9282e Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Mon, 9 Feb 2026 08:54:43 +0900 Subject: [PATCH 1/2] [NFC] BridgeJS: Fix unused variable warning in BridgeJSCommandPlugin.swift --- .../Sources/BridgeJSCommandPlugin/BridgeJSCommandPlugin.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Plugins/BridgeJS/Sources/BridgeJSCommandPlugin/BridgeJSCommandPlugin.swift b/Plugins/BridgeJS/Sources/BridgeJSCommandPlugin/BridgeJSCommandPlugin.swift index 3dce62578..a45a06188 100644 --- a/Plugins/BridgeJS/Sources/BridgeJSCommandPlugin/BridgeJSCommandPlugin.swift +++ b/Plugins/BridgeJS/Sources/BridgeJSCommandPlugin/BridgeJSCommandPlugin.swift @@ -98,7 +98,6 @@ extension BridgeJSCommandPlugin.Context { printStderr("Generating bridge code for \(target.name)...") let generatedDirectory = target.directoryURL.appending(path: "Generated") - let generatedJavaScriptDirectory = generatedDirectory.appending(path: "JavaScript") let bridgeDtsPath = target.directoryURL.appending(path: "bridge-js.d.ts") let tsconfigPath = context.package.directoryURL.appending(path: "tsconfig.json") From 3b6cd2c6b0b406094143a1ecb0a1ffd62e33034f Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Mon, 9 Feb 2026 08:56:27 +0900 Subject: [PATCH 2/2] [NFC] JavaScriptEventLoop: Fix warnings for undeclared SPI usage --- .../JavaScriptEventLoop+ExecutorFactory.swift | 4 ++++ Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Sources/JavaScriptEventLoop/JavaScriptEventLoop+ExecutorFactory.swift b/Sources/JavaScriptEventLoop/JavaScriptEventLoop+ExecutorFactory.swift index d31e03597..7de4cb74a 100644 --- a/Sources/JavaScriptEventLoop/JavaScriptEventLoop+ExecutorFactory.swift +++ b/Sources/JavaScriptEventLoop/JavaScriptEventLoop+ExecutorFactory.swift @@ -4,7 +4,11 @@ // See: https://github.com/swiftlang/swift/pull/80266 // See: https://forums.swift.org/t/pitch-2-custom-main-and-global-executors/78437 +#if compiler(>=6.3) @_spi(ExperimentalCustomExecutors) import _Concurrency +#else +import _Concurrency +#endif import _CJavaScriptKit #if compiler(>=6.3) diff --git a/Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift b/Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift index 4b4115602..aebc90d65 100644 --- a/Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift +++ b/Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift @@ -1,5 +1,9 @@ import JavaScriptKit +#if compiler(>=6.3) @_spi(ExperimentalCustomExecutors) import _Concurrency +#else +import _Concurrency +#endif import _CJavaScriptEventLoop import _CJavaScriptKit