swiftwasm / JavaScriptKit

Swift framework to interact with JavaScript through WebAssembly.
https://swiftpackageindex.com/swiftwasm/JavaScriptKit/main/documentation/javascriptkit
MIT License
664 stars 44 forks source link

Update macro conditions for runtime usage #257

Closed fjtrujy closed 1 month ago

fjtrujy commented 1 month ago

_runtime(_multithreaded) is available only in the main snapshot toolchain, but unavailable in 6.0. However, we cannot distinguish them because compiler(>=6.1) is still false in the main snapshot toolchain. Thus add hasFeature(IsolatedAny2) condition, which is only available in main snapshot toolchains.