1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
Commit graph

18 commits

Author SHA1 Message Date
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
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
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
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
992248e731
test(std/wasi): seperate test runner into a module (#7191) 2020-08-27 11:21:57 +02:00
Casper Beyer
f7174267e3
test(std/wasi): add wasi-testsuite as a submodule (#7042) 2020-08-25 08:36:50 -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
David Sherret
cde4dbb351
Use dprint for internal formatting (#6682) 2020-07-14 15:24:17 -04:00
Casper Beyer
99f4a710f1
test(std/wasi): add read, write and metadata tests (#6494) 2020-06-26 15:36:46 -04:00
Casper Beyer
9107b1ea3f
test(wasi/std): remove v8 flags from test runner (#6496) 2020-06-26 12:34:55 -04:00
Casper Beyer
a354b248ea
feat(std/wasi): add wasi_snapshot_preview1 (#6441) 2020-06-24 09:27:31 -04:00