Skip to content

Commit bbaa0a5

Browse files
BridgeJSRuntimeTests: import @jsclass for runtime regression
1 parent 868edd2 commit bbaa0a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/BridgeJSRuntimeTests/ExportAPITests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import XCTest
2-
import JavaScriptKit
2+
@_spi(Experimental) import JavaScriptKit
33
import JavaScriptEventLoop
44

55
@_extern(wasm, module: "BridgeJSRuntimeTests", name: "runJsWorks")
@@ -33,9 +33,9 @@ func runJsWorks() -> Void
3333
return v
3434
}
3535

36-
@JSClass class Foo {
36+
@JSClass final class Foo {
3737
@JSGetter var value: String
38-
@JSFunction init(_ value: String) throws(JSException)
38+
@JSFunction convenience init(_ value: String) throws(JSException)
3939
}
4040

4141
@JS func makeImportedFoo(value: String) throws(JSException) -> Foo {

0 commit comments

Comments
 (0)