Casper Beyer
c5ccbf3699
test(std/wasi): run test runner with --no-check ( #8710 )
2020-12-10 13:36:07 +01:00
Casper Beyer
65c6a0306e
test(std/wasi): add a case for open directory/../.. ( #8708 )
2020-12-10 13:31:15 +01:00
Casper Beyer
4f0dc2c51d
refactor(std/wasi): prefer explicit encoder/decoder names ( #8622 )
...
This renames a couple of identifiers from the ambigious name "text" to
the more explicit textEncoder and textDecoder depending on what they are.
2020-12-05 15:47:01 +01:00
Benjamin Gruenbaum
71ef5a9cd3
feat(op_crates/web) EventTarget signal support ( #8616 )
...
Fixes: https://github.com/denoland/deno/issues/8606
2020-12-04 12:47:08 -05:00
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
b9dc2c3521
test(std/wasi): re-enable clock_time_get tests ( #8098 )
...
This brings in revised tests for clock_time_get from upstream and
re-enables them.
This revision of these tests allow for lower precision clocks (we only
provide millisecond precision, and that is conformant but previous
tests for this in the upstream test suite were a bit more aggressive).
2020-10-26 16:57:09 +01:00
Casper Beyer
9adbca6d19
docs(std/wasi): mark sched_yield as implemented ( #8055 )
...
This marks sched_yield as implemented, it is a no-op but will probably
always be and we have passing tests for it.
2020-10-24 16:05:30 +02: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
be89bdfed7
test(std/wasi): reduce test duplication ( #8053 )
...
This fast-forwards wasi-test-suite a couple of commits removed
duplicate, or near duplicate tests with not much additional value.
Other tests have been merged to reduce the number of modules to make
tests topical to the syscall that is being tested.
2020-10-20 22:54:27 +02:00
tokiedokie
3d65177dbc
docs(std): version all imports in README ( #7442 )
...
Use $STD_VERSION in std/ README files to automatically
display proper version.
2020-10-04 14:18:36 +02:00
Trivikram Kamat
d0eb179132
docs: end sentences with a period in markdown ( #7813 )
2020-10-04 07:19:11 +11:00
Casper Beyer
f9973364dd
docs(std/wasi): remove outdated testing section ( #7812 )
2020-10-03 16:41:24 +02:00
Casper Beyer
e8b93674ed
docs(std/wasi): fix usage example ( #7808 )
...
The usage example is a bit out of date and not compatible with the
stricter definition of the WebAssembly namespace.
This fixes that and makes it a bit cleaner.
2020-10-03 15:52:34 +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
Casper Beyer
9d738fc197
test(std/wasi): add fd_renumber test ( #7574 )
2020-09-21 15:17:01 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Casper Beyer
1e6d37f88c
test(std/wasi): add sched_yield test ( #7511 )
2020-09-16 16:30:12 -04:00
Casper Beyer
15649b61bd
test(std/wasi): explicitly list modules for deterministic test runs ( #7245 )
...
This explicitly lists std/wasi test modules in a pre-sorted array for deterministic test runs.
As a side effect it makes it a bit more visible when a test has been added or removed aside
from having to look at the submodule update.
2020-09-04 07:14:51 -04:00
Casper Beyer
c10900b2c1
chore(std/wasi): enable and fix lint errors in tests ( #7324 )
2020-09-04 07:13:08 -04:00
Casper Beyer
15fd1e8d30
chore(std/wasi): fix no-inner-declarations lints ( #7286 )
2020-08-31 17:13:55 +02:00
Casper Beyer
a451a97486
fix(cli): use upstream type definitions for WebAssembly ( #7216 )
2020-08-31 12:04:47 +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
Casper Beyer
992248e731
test(std/wasi): seperate test runner into a module ( #7191 )
2020-08-27 11:21:57 +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
f7174267e3
test(std/wasi): add wasi-testsuite as a submodule ( #7042 )
2020-08-25 08:36:50 -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
5adb6cba3e
docs(std/wasi): fix reference to the wrong object in example ( #7124 )
2020-08-20 11:48:33 -04: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
9e0bc25142
test(std/wasi): add std file read and write tests ( #6671 )
2020-07-07 00:49:04 -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
5b09e721d3
test(std/wasi) add std::fs::File seek test ( #6648 )
2020-07-05 21:36:45 -04:00
Casper Beyer
79400b8f7d
feat(std/wasi): implement fd_readdir ( #6631 )
2020-07-05 18:08:05 -04:00
Casper Beyer
960800888a
test(std/wasi): explicitly assert each expected arg ( #6633 )
2020-07-05 18:03:34 -04:00
Casper Beyer
cc2dda6754
test(std/wasi): add create directory and file tests ( #6603 )
2020-07-02 09:15:02 -04:00
Casper Beyer
971dfcf9bb
test(std/wasi): add rename test ( #6573 )
2020-06-29 23:37:05 -04:00
Casper Beyer
9b749945bb
test(std/wasi): add hard-link test ( #6571 )
2020-06-29 20:37:15 -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