Skip to content

Commit 3317435

Browse files
committed
fix: Functions with @js were being generated with @_expose(wasm "bjs_load") rather than @_expose(wasm, "bjs_load"), which broke compilation for generated code.
1 parent d8b0e17 commit 3317435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -760,10 +760,10 @@ enum SwiftCodePattern {
760760
return AttributeListSyntax {
761761
#if canImport(SwiftSyntax602)
762762
let exposeAttrArgs = AttributeSyntax.Arguments.argumentList(
763-
[
764-
LabeledExprSyntax(label: nil, expression: DeclReferenceExprSyntax(baseName: "wasm")),
765-
LabeledExprSyntax(label: nil, expression: StringLiteralExprSyntax(content: abiName)),
766-
]
763+
LabeledExprListSyntax {
764+
LabeledExprSyntax(expression: DeclReferenceExprSyntax(baseName: "wasm"))
765+
LabeledExprSyntax(expression: StringLiteralExprSyntax(content: abiName))
766+
}
767767
)
768768
let cdeclAttrArgs = AttributeSyntax.Arguments.argumentList(
769769
[

0 commit comments

Comments
 (0)