From 331743598f2e9347ffa2a56dfa7333aeed1224fc Mon Sep 17 00:00:00 2001 From: Scott Marchant Date: Mon, 2 Feb 2026 16:26:18 -0700 Subject: [PATCH] fix: Functions with @JS were being generated with `@_expose(wasm "bjs_load")` rather than `@_expose(wasm, "bjs_load")`, which broke compilation for generated code. --- Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift b/Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift index 9e5575c41..5fda8ce5d 100644 --- a/Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift +++ b/Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift @@ -760,10 +760,10 @@ enum SwiftCodePattern { return AttributeListSyntax { #if canImport(SwiftSyntax602) let exposeAttrArgs = AttributeSyntax.Arguments.argumentList( - [ - LabeledExprSyntax(label: nil, expression: DeclReferenceExprSyntax(baseName: "wasm")), - LabeledExprSyntax(label: nil, expression: StringLiteralExprSyntax(content: abiName)), - ] + LabeledExprListSyntax { + LabeledExprSyntax(expression: DeclReferenceExprSyntax(baseName: "wasm")) + LabeledExprSyntax(expression: StringLiteralExprSyntax(content: abiName)) + } ) let cdeclAttrArgs = AttributeSyntax.Arguments.argumentList( [