Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit 70f899d

Browse files
committed
Remove polyfill from sdkroot
Chrome doesn't support loading wasm from File url, Safari needs a change to the polyfill anyways. Direct users to the hosted version instead.
1 parent f8d7f89 commit 70f899d

File tree

5 files changed

+3
-8167
lines changed

5 files changed

+3
-8167
lines changed

sdkroot/README.txt

+3-7
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,13 @@ Running Wasm files
5050

5151
To run the resulting hello.wasm file:
5252

53-
- open js-polyfill/polyfill.html in your browser
53+
- Visit https://swiftwasm.org/polyfill/
5454
- select "Browse", and choose the hello.wasm file
5555
- you should get output in the textbox.
5656

57-
Note: the polyfill included here works in Firefox 66 and Chrome 74.
57+
This polyfill should work in Firefox 66, Chrome 74, and Safari 12.1.
5858

59-
Safari requires a slightly different polyfill: please use the hosted polyfill at
60-
61-
https://swiftwasm.org/polyfill/
62-
63-
You can also run the file with
59+
You can also run the file outside a browser with:
6460

6561
- Wasmtime https://github.com/CraneStation/wasmtime
6662
- Lucet https://github.com/swiftwasm/lucet/tree/swiftwasm

sdkroot/js-polyfill/WASI-small.png

-21.1 KB
Binary file not shown.

sdkroot/js-polyfill/polyfill.html

-90
This file was deleted.

0 commit comments

Comments
 (0)