summaryrefslogtreecommitdiff
path: root/std/wasi
AgeCommit message (Collapse)Author
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-01-17chore: Enforce ban-untagged-todo lint rule (#9135)Bartek IwaƄczuk
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-10update copyright to 2021 (#9081)Ryan Dahl
2021-01-06BREAKING(std/wasi): return exit code from start (#9022)Casper Beyer
This returns the exit code directly from the start entry point instead of throwing it and letting the user handle it. As a result the exit status is an implementation detail and has been made internal.
2021-01-05BREAKING(std/wasi): make implementation details private (#8996)Casper Beyer
This makes the implementation details of the Context class private, making the public interface much more bare-bones and aligns it closer to what Node exposes.
2021-01-05feat(std/wasi): allow stdio resources to be specified (#8999)Casper Beyer
2020-12-10docs(std/wasi): document ContextOptions (#8715)Casper Beyer
2020-12-10docs(std/wasi): add a basic description of Context (#8711)Casper Beyer
2020-12-10fix(std/wasi): disallow multiple starts (#8712)Casper Beyer
2020-12-10test(std/wasi): run test runner with --no-check (#8710)Casper Beyer
2020-12-10test(std/wasi): add a case for open directory/../.. (#8708)Casper Beyer
2020-12-05refactor(std/wasi): prefer explicit encoder/decoder names (#8622)Casper Beyer
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-04feat(op_crates/web) EventTarget signal support (#8616)Benjamin Gruenbaum
Fixes: https://github.com/denoland/deno/issues/8606
2020-12-04refactor(std/wasi): prefer nullish coalescing (#8607)Casper Beyer
2020-12-03feat(std/wasi): add return on exit option (#8605)Casper Beyer
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-03feat(std/wasi): add support for initializing reactors (#8603)Casper Beyer
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-11-02feat(std/wasi): add start method to Context (#8141)Casper Beyer
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-10-27fix(std/wasi): remove stray console.log call (#8156)Casper Beyer
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-26test(std/wasi): re-enable clock_time_get tests (#8098)Casper Beyer
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-24docs(std/wasi): mark sched_yield as implemented (#8055)Casper Beyer
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-24fix(std/wasi): disallow path_open outside of pre-opened dirfd (#8078)Casper Beyer
2020-10-20test(std/wasi): reduce test duplication (#8053)Casper Beyer
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-04docs(std): version all imports in README (#7442)tokiedokie
Use $STD_VERSION in std/ README files to automatically display proper version.
2020-10-04docs: end sentences with a period in markdown (#7813)Trivikram Kamat
2020-10-03docs(std/wasi): remove outdated testing section (#7812)Casper Beyer
2020-10-03docs(std/wasi): fix usage example (#7808)Casper Beyer
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-09-29chore(std/wasi): enable and fix lint errors in snapshot_preview1 (#7360)Casper Beyer
2020-09-21test(std/wasi): add fd_renumber test (#7574)Casper Beyer
2020-09-21chore: add copyright (#7593)tokiedokie
2020-09-16test(std/wasi): add sched_yield test (#7511)Casper Beyer
2020-09-04test(std/wasi): explicitly list modules for deterministic test runs (#7245)Casper Beyer
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-04chore(std/wasi): enable and fix lint errors in tests (#7324)Casper Beyer
2020-08-31chore(std/wasi): fix no-inner-declarations lints (#7286)Casper Beyer
2020-08-31fix(cli): use upstream type definitions for WebAssembly (#7216)Casper Beyer
2020-08-27fix(std/wasi): invalid number to bigint conversion in fd_tell (#7215)Casper Beyer
2020-08-27test(std/wasi): seperate test runner into a module (#7191)Casper Beyer
2020-08-27fix(std/wasi): ignore lint errors (#7197)Yusuke Tanaka
2020-08-25fix(std/wasi): return flags from fd_fdstat_get (#7112)Casper Beyer
2020-08-25test(std/wasi): add wasi-testsuite as a submodule (#7042)Casper Beyer
2020-08-24fix(std/wasi): always capture syscall exceptions (#7116)Casper Beyer
This wraps all exported syscalls in an exception catching delegate to ensure that the stack is never unexpectedly unwound.
2020-08-24BREAKING(std/wasi): rename Module to Context (#7110)Casper Beyer
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-24BREAKING(std/wasi): use record for exports (#7109)Casper Beyer
2020-08-20docs(std/wasi): fix reference to the wrong object in example (#7124)Casper Beyer
2020-07-16fix(std/wasi): remove number overload from rights in path_open (#6768)Casper Beyer
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-07-07test(std/wasi): add std file read and write tests (#6671)Casper Beyer
2020-07-05fix(std/wasi): return errno::success from fd_tell (#6636)Casper Beyer
2020-07-05test(std/wasi) add std::fs::File seek test (#6648)Casper Beyer
2020-07-05feat(std/wasi): implement fd_readdir (#6631)Casper Beyer