Nick Fitzgerald
64591ef403
Js sys use &str arguments ( #555 )
...
* js-sys: imports should take &str parameters instead of &JsString
* js-sys: Imports should take Option<&str> instead of Option<String>
2018-07-25 18:50:30 -05:00
Nick Fitzgerald
61fc8d2567
Js sys once over ( #550 )
...
* js-sys: Return `f64` instead of `Number`
* js-sys: remove trailing whitespace
* js-sys: Ensure that all imported types derive Clone and Debug
* js-sys: Imported functions should always take JS object arguments by-ref
2018-07-25 16:33:44 -05:00
Alex Crichton
906cd7adcc
Remove usage of wasm_import_module
feature
...
This is now stabilized! Also tweak usage of it to the stable version.
2018-07-21 19:00:40 -07:00
Alex Crichton
13cee9e264
Fix closures example
2018-07-20 12:09:30 -07:00
Alex Crichton
6eef5f7b52
Move the js
module to a js_sys
crate ( #512 )
...
* Move the `js` module to a `js_sys` crate
* Update js-sys tests to pass again
* Update binding_to_unimplemented_apis_doesnt_break_everything
Remove its dependency on the `js` module
* Update metadata for js-sys
* Fix the `closures` example
2018-07-19 14:30:58 -05:00
Alex Crichton
a949482e3a
Remove usage of #[wasm_custom_section] ( #509 )
...
This has been stabilized on nightly as `#[link_section]`, so no need for an
unstable attribute any more. Yay!
2018-07-19 08:57:18 -05:00
Alex Crichton
ed05c7b945
Fix compile on latest nightly ( #489 )
2018-07-17 09:11:30 -05:00
Frank Hassanabad
6561fba947
Applied eslint from main .eslintrc to examples ( #418 )
...
* Changed eslintrc to be JSON file (Most projects use JSON version)
* Added .eslintignore to ingore node_modules from subdirectories such as examples
* Ran eslint --fix examples to fix all examples
* Added npm script for running eslint against examples
* Added npm script for running eslint against generated *out* code
* Hooked npm scripts into travis ci to prevent examples from becoming inconsistent with future PR's
2018-07-08 01:02:10 -05:00
R. Andrew Ohana
9127a0419f
rustfmt all the things
2018-06-27 22:42:34 -07:00
Sendil Kumar
ef27cb6392
Add date constructor
2018-06-26 16:55:40 +02:00
Sven SAULEAU
b67df02d01
feat: bump webpack
2018-06-06 10:07:02 +02:00
Sven SAULEAU
fe60d48825
fix: bump webpack
2018-05-08 19:35:58 +02:00
Alex Crichton
d04f8c7119
No more need for chrome workarounds!
2018-05-07 07:36:38 -07:00
Alex Crichton
158b95c29b
Add WebAssembly Studio links to examples/README
...
Should hopefully make it much easier to get off the ground running and
exploring!
2018-04-17 13:51:01 -07:00
Alex Crichton
a558fa49a0
Fix closures example build script
2018-04-09 15:02:20 -07:00
Alex Crichton
a3e5485b86
Add examples/documentation for closures
2018-04-09 14:34:21 -07:00