Skip to content

Commit 75bb348

Browse files
committed
document JAVASCRIPTKIT_WITHOUT_BIGINTS flag
1 parent f334021 commit 75bb348

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ a few additional steps though (you can skip these steps if your app depends on
7171
)
7272
```
7373

74-
2. Add an explicit import in the code that executes **before* you start using `await` and/or `Task`
75-
APIs (most likely in `main.swift`):
74+
1. Add an explicit import in the code that executes **before** you start using `await` and/or `Task`
75+
APIs (most likely in `main.swift`):
7676

7777
```swift
7878
import JavaScriptEventLoop
7979
```
8080

81-
3. Run this function **before* you start using `await` and/or `Task` APIs (again, most likely in
82-
`main.swift`):
81+
3. Run this function **before** you start using `await` and/or `Task` APIs (again, most likely in
82+
`main.swift`):
8383

8484
```swift
8585
JavaScriptEventLoop.installGlobalExecutor()
@@ -125,21 +125,21 @@ asyncButtonElement.onclick = .object(JSClosure { _ in
125125
_ = document.body.appendChild(asyncButtonElement)
126126
```
127127

128-
## Requirements
128+
## Requirements
129129

130130
### For developers
131131

132-
- macOS 11 and Xcode 13.2 or later versions, which support Swift Concurrency back-deployment.
133-
To use earlier versions of Xcode on macOS 11 you'll have to
134-
add `.unsafeFlags(["-Xfrontend", "-disable-availability-checking"])` in `Package.swift` manifest of
135-
your package that depends on JavaScriptKit. You can also use Xcode 13.0 and 13.1 on macOS Monterey,
136-
since this OS does not need back-deployment.
132+
- macOS 11 and Xcode 13.2 or later versions, which support Swift Concurrency back-deployment.
133+
To use earlier versions of Xcode on macOS 11 you'll have to
134+
add `.unsafeFlags(["-Xfrontend", "-disable-availability-checking"])` in `Package.swift` manifest of
135+
your package that depends on JavaScriptKit. You can also use Xcode 13.0 and 13.1 on macOS Monterey,
136+
since this OS does not need back-deployment.
137137
- [Swift 5.5 or later](https://swift.org/download/) and Ubuntu 18.04 if you'd like to use Linux.
138138
Other Linux distributions are currently not supported.
139139

140140
### For users of apps depending on JavaScriptKit
141141

142-
Any recent browser that [supports WebAssembly](https://caniuse.com/#feat=wasm) and required
142+
Any recent browser that [supports WebAssembly](https://caniuse.com/#feat=wasm) and required
143143
JavaScript features should work, which currently includes:
144144

145145
- Edge 84+
@@ -149,7 +149,7 @@ JavaScript features should work, which currently includes:
149149
- Mobile Safari 14.8+
150150

151151
If you need to support older browser versions, you'll have to build with
152-
`JAVASCRIPTKIT_WITHOUT_WEAKREFS` flag, passing `-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS` flags
152+
`JAVASCRIPTKIT_WITHOUT_WEAKREFS` and `JAVASCRIPTKIT_WITHOUT_BIGINTS` flags, passing `-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS -Xswiftc -DJAVASCRIPTKIT_WITHOUT_BIGINTS` flags
153153
when compiling. This should lower browser requirements to these versions:
154154

155155
- Edge 16+

0 commit comments

Comments
 (0)