Skip to content

Commit b715616

Browse files
committed
repl/web: apply wasm_exec.js.patch to fix print() under wasm
The patch was committed in the initial commit but it wasn't applied!
1 parent 50cd487 commit b715616

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

repl/web/wasm_exec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// Slightly modified by ncw to:
6+
// * add empty implementation of fsyncSync
7+
// See wasm_exec.js.patch for details
8+
59
(() => {
610
// Map web browser API and Node.js API to a single common API (preferring web standards over Node.js API).
711
const isNodeJS = typeof process !== "undefined";
@@ -59,6 +63,8 @@
5963
err.code = "ENOSYS";
6064
callback(err);
6165
},
66+
fsyncSync(fd) {
67+
},
6268
};
6369
}
6470

0 commit comments

Comments
 (0)