Commit Graph

13 Commits

Author SHA1 Message Date
daxpedda
0979fea92b
Add support for testing in more worker types (#3804)
Co-authored-by: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
2024-01-23 10:35:26 +01:00
WhizSid
0753bec4c6
Worker tests (#3351)
* Running tests on workers without displaying errors

* Initializing the wasm bindgen only in worker

* Adding tests to run in workers

* Format

* Adding webdriver.json file

* Removed memory module from worker tests

* Keeping original JsValue without overwriting

* Updated the documentation
2023-04-26 19:09:15 +05:00
trevyn
965b88cf7e
Generate TypeScript return types for async functions (#2665)
* Generate TypeScript return types for `async` functions

* Fix tests to respect returning only `Result<T, JsValue>`

* Fix smoke test

* add `simple_async_fn` to `typescript-tests`

* cleanup and set JsDoc comment correctly for `Promise<void>`

* clean up now that `ts_ret_ty` is complete w/ Promise

* add `.d.ts` reference tests

* add async reference tests

* don't test `.js` and `.wat` in async reference tests
2021-08-26 09:33:36 -05:00
Cameron Taggart
1a7d6de1b2
add dyn for Fn (#2212)
* add dyn for Fn

* revert invalid-imports changes

* add one more dyn in doc comments
2020-06-23 10:24:26 -05:00
lshlyapnikov
d51f539d1a Add an unsafe method view_mut_raw (#1850)
* adding .vscode folder to .gitignore

* Adding view_mut_raw to generated arrays

* test populating rust vector from JS  function

* Uint32Array test, need to make it generic

* Add doc + more test cases

* replacing macro-generated tests with generic test function

it is cleaner, safer and better that way

* improving rustdoc
2019-11-06 12:37:26 -06:00
Alex Crichton
98008b9e77 Bump to 0.2.18
At the same time, also add a `publish.rs` script to ease our publishing woes.
2018-08-27 13:37:55 -07:00
Kevin Hoffman
3e84b97de2 Binding for Math.cos,cosh,exp,expml,fround,imul,log,log10,log1p,log2 2018-06-28 12:46:53 -04:00
R. Andrew Ohana
cc1db03e5a use both npm and yarn in ci 2018-06-25 17:22:51 -07:00
Alex Crichton
98f3b9634e Update gitignore to ignore typescript files 2018-04-27 13:25:53 -07:00
Ashley Williams
61ea1b4b00 fix(ignore): ignore yarn.lock 2018-03-29 11:22:06 +02:00
Alex Crichton
4aa6793b9e Rewrite the README using Webpack
Right now Webpack probably has the most mature support for loading wasm modules,
so let's show off how to do that! Additionally this commits hello world as an
example to the repository.
2018-03-02 20:12:00 -08:00
Alex Crichton
353794417c Don't run npm install during tests
Instead add a `package.json` and use `yarn run`.
2018-03-02 15:44:28 -08:00
Alex Crichton
2926e6e9f4 Initial commit 2017-12-14 19:31:01 -08:00