Files
Ayke van Laethem 8e7a288bb4 wasm: use wasip1 API for parameter/env passing
Instead of hardcoding the command line parameters and the environment
variables in the binary, pass them at runtime to Node.js and use the
WASIp1 API to retrieve them in wasm_exec.js.

The only real benefit right now is that it becomes possible to change
`go.argv` and `go.env` before running a wasm binary.

This also changes the syscall package for GOOS=js: it now becomes more
like a libc (using wasi-libc), which means error values like
`syscall.EEXIST` will actually match the one returned by the relevant
libc function.

Wasm binary size for packages that import the os package will be
increased somewhat.
2024-10-30 11:14:18 +01:00
..
2023-05-20 21:18:02 +02:00
2022-11-06 09:05:05 +01:00
2022-11-18 18:40:38 +01:00
2023-05-20 21:18:02 +02:00
2023-05-20 21:18:02 +02:00
2023-10-01 18:32:15 +02:00
2023-06-01 21:04:36 +02:00
2022-04-23 08:45:46 +02:00
2022-04-23 08:45:46 +02:00
2022-04-23 08:45:46 +02:00
2022-04-23 08:45:46 +02:00
2022-04-23 08:45:46 +02:00
2023-04-26 23:07:52 +02:00
2024-05-24 19:12:26 +02:00
2020-09-09 19:17:11 +02:00
2024-05-24 19:12:26 +02:00
2021-09-05 19:59:26 +02:00
2024-05-24 19:12:26 +02:00
2024-05-12 16:09:27 +02:00
2021-03-04 15:46:05 +01:00
2022-07-16 08:31:22 +02:00
2022-12-16 21:26:49 +01:00
2018-10-06 13:04:14 +02:00
2019-11-16 21:57:18 +01:00
2020-10-20 19:13:43 +02:00
2022-12-16 21:26:49 +01:00
2020-10-20 19:13:43 +02:00
2022-12-16 21:26:49 +01:00
2022-12-16 21:26:49 +01:00
2018-10-18 15:07:06 +02:00
2020-07-13 12:35:53 +02:00
2020-02-18 23:34:56 +01:00
2020-02-18 23:34:56 +01:00
2020-02-18 23:34:56 +01:00
2021-03-28 21:38:05 +02:00
2023-05-09 19:44:00 +02:00
2023-09-18 21:58:02 +02:00
2023-09-18 21:58:02 +02:00
2024-05-24 19:12:26 +02:00
2020-03-26 23:03:55 +01:00
2021-10-05 05:52:03 +02:00
2018-09-22 01:51:44 +02:00
2020-12-15 06:51:35 +01:00
2021-03-23 08:33:59 +01:00
2022-01-13 07:56:08 +01:00
2024-04-19 20:50:00 +02:00
2020-07-08 21:58:15 +02:00
2020-11-11 18:34:47 +01:00
2024-02-23 14:00:57 +01:00