Skip to content

Commit d3ae793

Browse files
committed
Update README.md
1 parent 9258bed commit d3ae793

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Some differences with JS7z include:
4646
- Asynchronous completion callbacks with exit statuses/reasons
4747
- Improved exception handling coverage (optional; increases build size)
4848
- Supports `PROXYFS` as well as `NODEFS` and `WORKERFS`, so you can chain operations between instances without needing to offload data
49+
- Can work with JavaScript or on behalf of other WebAssembly projects
4950
- Minimal build variants
5051

5152
Sample Web Page: Compress User-Supplied Files
@@ -102,7 +103,7 @@ async function compressFile() {
102103
// Define a function to be called when the compression is complete
103104
js7z.onExit = function(exitCode) {
104105
// Compression unsuccessful
105-
if (exitCode != 0)
106+
if (exitCode !== 0)
106107
return;
107108

108109
// Compression successful
@@ -152,7 +153,7 @@ Completion Callbacks, Error Handling & Console Output
152153

153154
Ideally, all of these should be handled:
154155

155-
- 7-Zip writes textual information and errors to `stdout` and `stderr` respectively, which are mapped to `print(text)` and `printErr(text)`.
156+
- 7-Zip writes textual information and errors to `stdout` and `stderr` respectively, which call `print(text)` and `printErr(text)` every time a line of text is flushed from the buffer.
156157
- If the Emscripten runtime terminates unexpectedly, `onAbort(reason)` should be called with an explanation.
157158
- When errors happen inside 7-Zip, usually `onExit(errorCode)` will be called with an error code other than `0`.
158159
- If the Emscripten runtime has trouble starting up, for example if the `.wasm` file cannot be downloaded or the browser does not support certain features, there is a chance that the call to `JS7z()` may throw an error.
@@ -269,4 +270,4 @@ The build will output `js7z.js`, `js7z.wasm` and, if multi-threaded mode is chos
269270

270271
---
271272

272-
Documentation (C) Copyright 2024 Gregory Maynard-Hoare. See the `7z-Src/DOC` folder for licence information.
273+
This documentation Copyright (C) 2024 Gregory Maynard-Hoare. See the `7z-Src/DOC` folder for licence information.

0 commit comments

Comments
 (0)