From 6ea53e44a4d2a83d5940097d575f4a019d7016dd Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Wed, 31 Aug 2022 16:41:59 +0200 Subject: [PATCH 1/2] Update README.md --- src/runtime/javascript/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/javascript/README.md b/src/runtime/javascript/README.md index efea0fd5b..1dd33c0fa 100644 --- a/src/runtime/javascript/README.md +++ b/src/runtime/javascript/README.md @@ -1,9 +1,9 @@ # JavaScript runtime using Web Assembly This folder contains very early work experimenting with a pure JavaScript runtime, -copiled to Web Assembly (WASM) using [Emscripten](https://emscripten.org/). +compiled to Web Assembly (WASM) using [Emscripten](https://emscripten.org/). -1. Compile the WASM files (inside Docker) using `build-wasm.js`, placing them in `.libs/` +1. Compile the WASM files (inside Docker) using `build-wasm.sh`, placing them in `.libs/` 2. Test in Node.js by running `node test-node.js [path to PGF]` 3. Test in a web browser a. Start a server with `npx serve -l 41296` From 3a17a68da6aa84c47d08e5676e3568b0a8bf3c5e Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Wed, 31 Aug 2022 16:42:41 +0200 Subject: [PATCH 2/2] Update README.md --- src/runtime/javascript/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/javascript/README.md b/src/runtime/javascript/README.md index 1dd33c0fa..9b7523bf7 100644 --- a/src/runtime/javascript/README.md +++ b/src/runtime/javascript/README.md @@ -6,6 +6,6 @@ compiled to Web Assembly (WASM) using [Emscripten](https://emscripten.org/). 1. Compile the WASM files (inside Docker) using `build-wasm.sh`, placing them in `.libs/` 2. Test in Node.js by running `node test-node.js [path to PGF]` 3. Test in a web browser - a. Start a server with `npx serve -l 41296` - b. Browse to `http://localhost:41296/test-web.html` - c. Check JavaScript console + 1. Start a server with `npx serve -l 41296` + 2. Browse to `http://localhost:41296/test-web.html` + 3. Check JavaScript console