Casper Beyer
ae21a9569b
refactor(std/wasi): prefer nullish coalescing ( #8607 )
2020-12-04 13:53:16 +01:00
Casper Beyer
0ea1c6f5b0
feat(std/wasi): add return on exit option ( #8605 )
...
This adds an exitOnReturn option to context making it
possible to unwind the stack on the exit(2) syscall
instead of delegating to it directly.
Use case is being able to treat WASI execution contexts
as children that don't kill the parent on exit.
2020-12-03 19:57:35 +01:00
Casper Beyer
de036e1f08
feat(std/wasi): add support for initializing reactors ( #8603 )
...
This adds another entry point to Context called initialize for
spinning up style modules.
Reactors are modules that don't have a main function and
basically run forever in the background.
2020-12-03 19:36:13 +01:00
Casper Beyer
c5611636fb
feat(std/wasi): add start method to Context ( #8141 )
...
This adds a start method to the Context to make starting a command less
tedious and yield consistent errors.
Manually setting the memory is still valid for more complex scenarios,
just undocumented for the time being.
2020-11-02 18:50:45 +01:00
Casper Beyer
a2f126068e
fix(std/wasi): remove stray console.log call ( #8156 )
...
A stray console.log call made it into path_open which should have been
reverted, it was only meant for debugging on the CI.
2020-10-27 21:45:31 -04:00
Casper Beyer
2a83b22385
fix(std/wasi): disallow path_open outside of pre-opened dirfd ( #8078 )
2020-10-24 16:04:59 +02:00
Casper Beyer
71a8b1fe27
chore(std/wasi): enable and fix lint errors in snapshot_preview1 ( #7360 )
2020-09-29 11:41:22 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Casper Beyer
15fd1e8d30
chore(std/wasi): fix no-inner-declarations lints ( #7286 )
2020-08-31 17:13:55 +02:00
Casper Beyer
672350b206
fix(std/wasi): invalid number to bigint conversion in fd_tell ( #7215 )
2020-08-27 11:38:12 +02:00
Yusuke Tanaka
59428e3d8a
fix(std/wasi): ignore lint errors ( #7197 )
2020-08-27 11:14:01 +02:00
Casper Beyer
d0ccab7fb7
fix(std/wasi): return flags from fd_fdstat_get ( #7112 )
2020-08-25 13:40:29 -04:00
Casper Beyer
9b0f9c8765
fix(std/wasi): always capture syscall exceptions ( #7116 )
...
This wraps all exported syscalls in an exception catching delegate to
ensure that the stack is never unexpectedly unwound.
2020-08-24 19:04:11 -04:00
Casper Beyer
e8968e6bf4
BREAKING(std/wasi): rename Module to Context ( #7110 )
...
This commit renames Module and ModuleOptions to context to avoid stutter
confusion, e.g avoid having documentation that says things like
instantiate the snapshot's module's module.
2020-08-24 18:21:06 +02:00
Casper Beyer
c1d543e10a
BREAKING(std/wasi): use record for exports ( #7109 )
2020-08-24 18:12:16 +02:00
Casper Beyer
de34166891
fix(std/wasi): remove number overload from rights in path_open ( #6768 )
2020-07-16 11:01:49 -04:00
David Sherret
cde4dbb351
Use dprint for internal formatting ( #6682 )
2020-07-14 15:24:17 -04:00
Casper Beyer
714b894370
fix(std/wasi): return errno::success from fd_tell ( #6636 )
2020-07-05 21:38:48 -04:00
Casper Beyer
79400b8f7d
feat(std/wasi): implement fd_readdir ( #6631 )
2020-07-05 18:08:05 -04:00
Casper Beyer
cb16439e85
feat(std/wasi): implement fd_sync ( #6560 )
2020-06-29 17:45:39 -04:00
Casper Beyer
3c5459d849
feat(std/wasi) implement fd_filestat_set_size ( #6558 )
2020-06-29 14:36:22 -04:00
Casper Beyer
4cde7fdc9a
feat(std/wasi): implement fd_datasync ( #6556 )
2020-06-29 10:44:08 -04:00
Casper Beyer
06f34a1aed
feat(std/wasi) implement fd_filestat_get ( #6555 )
2020-06-29 09:34:18 -04:00
Casper Beyer
5f3d730df0
fix(std/wasi): use lookupflags for path_filestat_get ( #6530 )
2020-06-27 15:55:05 -04:00
Casper Beyer
40dcfc8996
fix(std/wasi): path_filestat_get padding ( #6509 )
2020-06-27 13:53:43 +02:00
Casper Beyer
a354b248ea
feat(std/wasi): add wasi_snapshot_preview1 ( #6441 )
2020-06-24 09:27:31 -04:00