File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import _CJavaScriptKit
2
2
3
3
/// Note:
4
- /// Define all runtime function stubs which are imported from JavaScript environment.
5
- /// SwiftPM doesn't support WebAssembly target yet, so we need to define them to
6
- /// avoid link failure .
7
- /// When running with JavaScript runtime library, they are ignored completely.
4
+ /// Define stubs for runtime functions which are usually imported from JavaScript environment.
5
+ /// JavaScriptKit itself supports only WebAssembly target, but it should be able
6
+ /// to be built for host platforms like macOS or Linux for tentative IDE support .
7
+ /// (ideally, IDE should build for WebAssembly target though)
8
8
#if !arch(wasm32)
9
9
func _set_prop(
10
10
_: JavaScriptObjectRef ,
@@ -99,4 +99,5 @@ import _CJavaScriptKit
99
99
_: UnsafeMutablePointer < UInt8 > !
100
100
) { fatalError ( ) }
101
101
func _release( _: JavaScriptObjectRef ) { fatalError ( ) }
102
+ func _unsafe_event_loop_yield( ) { fatalError ( ) }
102
103
#endif
You can’t perform that action at this time.
0 commit comments