Alex Crichton
ec5f0a29f7
Add a #[wasm_bindgen(constructor)] attribute
...
This can be used for specifying that a static function should actually delegate
to `new`
2018-02-06 15:25:46 -08:00
Alex Crichton
56b7fa453a
Fix some class import methods and auto gc
...
The runtime functions are now moved to the `wasm-bindgen` crate and are
auto-gc'd if they don't end up actually being required.
2018-02-06 08:58:15 -08:00
Alex Crichton
d2f2ed8c1a
Get the import-class
test working
2018-02-06 08:23:51 -08:00
Alex Crichton
d5ff725913
Greatly simplify handling of types in Rust
...
Push the compiler to do trait resolution to figure out what each type is bound
with in JS, and that way we can accept effectively all types (so long as they
implement a trait).
2018-02-06 07:56:14 -08:00
Alex Crichton
0320bc0d7c
more-wip
2018-02-05 16:39:11 -08:00
Alex Crichton
8f8da49dab
wip
2018-02-05 14:24:25 -08:00