1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-17 18:50:51 +00:00

1328 Commits

Author SHA1 Message Date
Richard Dodd
6c1f32fa5b Saving commit 2018-08-10 17:06:11 +01:00
Anton Danilkin
ce2c0ded74 Fix chrome only checks 2018-08-10 17:19:40 +03:00
Anton Danilkin
5ae18d18e9 Add macro for implementing simple type names 2018-08-10 16:43:06 +03:00
Anton Danilkin
90f172a34f Fix too much newlines 2018-08-10 15:56:57 +03:00
Anton Danilkin
22f92af124 Fix example in docs 2018-08-10 15:54:19 +03:00
Richard Dodd
56b0f64d0b Fix warning in doc gen 2018-08-10 10:29:16 +01:00
Andrew Chin
23cb0ea656 Add initial support and tests for JSON 2018-08-09 20:54:13 -04:00
Alex Crichton
d390f2fe04
Merge pull request from fitzgen/js-sys-promise-arguments-by-shared-ref
Js sys promise arguments by shared ref
2018-08-09 18:52:32 -06:00
Nick Fitzgerald
6faef3ba91
Merge pull request from eminence/eval_error
Add support and tests for EvalError
2018-08-09 17:14:51 -07:00
Andrew Chin
70406fe18a Add support and tests for EvalError 2018-08-09 19:26:00 -04:00
Nick Fitzgerald
ff83594882 futures: Add sanity tests for conversion between Promises and Futures
Part of 
2018-08-09 16:21:49 -07:00
Nick Fitzgerald
f9ac4e9c90 Always bind static operations to their class
For example, `Promise.resolve` must always be called with the `Promise`
constructor as its `this`, or else it will throw an error.
2018-08-09 16:17:34 -07:00
Anton Danilkin
e2af5639c5 Add documentation for GetArgumentPossibilities 2018-08-10 01:12:12 +03:00
Anton Danilkin
b6ba5cf4f1 Replace unwrap with expect 2018-08-10 00:55:46 +03:00
Anton Danilkin
d9d8f761f1 Add Exposed 2018-08-10 00:52:12 +03:00
Richard Dodd
615f8fbc4d Push updates - still WIP 2018-08-09 21:38:37 +01:00
Nick Fitzgerald
9a1147d61b
Merge pull request from Tarnadas/master
guide: typo in arbitrary data with serde
2018-08-09 13:13:15 -07:00
Nick Fitzgerald
96ad97a9f9 js-sys: Document that new bindings should take JS things by shared ref 2018-08-09 13:08:51 -07:00
Nick Fitzgerald
e3011d629e js-sys: Promise methods should take JS things by shared reference 2018-08-09 13:08:30 -07:00
Nick Fitzgerald
0a572d9eac
Merge pull request from eminence/extends_object
Add extends attributes for several types
2018-08-09 13:06:21 -07:00
Anton Danilkin
5127dd3f95 Fix tests 2018-08-09 22:13:50 +03:00
Anton Danilkin
131f223241 Use argument names instead of argument type names if possible 2018-08-09 21:51:41 +03:00
Andrew Chin
c371c4a509 Fixup from merge commit 2018-08-09 14:36:37 -04:00
Nick Fitzgerald
f8af399301
Merge branch 'master' into extends_object 2018-08-09 10:57:15 -07:00
Anton Danilkin
703b1ab91d Add support for unions in arguments and for optional arguments 2018-08-09 20:49:28 +03:00
Richard Dodd
1e02ca7eab Add support for modules to the backend. 2018-08-09 18:07:41 +01:00
Mario Reder
cc76963bad
guide: typo in arbitrary data with serde 2018-08-09 17:46:38 +02:00
Alex Crichton
f85fd0e2ad
Merge pull request from sepiropht/master
[670] add extends for Array type
2018-08-09 09:52:13 -05:00
Nick Fitzgerald
bd62fdbd8b
Merge pull request from bokuweb/number-extends-attributes
js-sys: Add extends attributes for js_sys::Number
2018-08-09 07:35:35 -07:00
sepiropht
e9e7072687 [670] add extends for Array type 2018-08-09 14:35:44 +02:00
Alex Crichton
157ba00660
Merge pull request from fitzgen/futures-docs
wasm-bindgen-futures docs and example usage
2018-08-08 23:23:48 -05:00
Andrew Chin
cc8095d065 Add extends attributes for several types
Part of 
2018-08-08 23:16:57 -04:00
bokuweb
42e02f7769 js-sys: Add extends attributes for js_sys::Number 2018-08-09 10:10:20 +09:00
Alex Crichton
505037ffae
Merge pull request from fitzgen/contributing-testing
Contributing testing docs
2018-08-08 19:50:00 -05:00
Nick Fitzgerald
05dd67a63f ci: Also test wasm-bindgen-futures 2018-08-08 17:44:38 -07:00
Nick Fitzgerald
170f20e1fd futures: Add more documentation and example usage
Adds an example future that becomes ready on the next tick of the JavaScript
micro task queue.

Part of 
2018-08-08 17:44:38 -07:00
Nick Fitzgerald
16dbed59b2
Merge pull request from fitzgen/regexp-extends-attributes
js-sys: Add extends attributes for js_sys::RegExp
2018-08-08 16:43:46 -07:00
Nick Fitzgerald
235f9cc04e js-sys: Add extends attributes for js_sys::RegExp
Part of 
2018-08-08 16:23:12 -07:00
Nick Fitzgerald
e8a6341d2b test: Add documentation about configuring headless browser testing 2018-08-08 15:47:46 -07:00
Nick Fitzgerald
2fcc74e226 guide: refactor and update testing instructions for contributing 2018-08-08 15:33:56 -07:00
Nick Fitzgerald
66f10b0c72
Merge pull request from fitzgen/instanceof-renamed-import-types
Instanceof renamed import types
2018-08-08 15:31:24 -07:00
Nick Fitzgerald
2f455f1f7a macro-support: Run rustfmt on src/parser.rs 2018-08-08 14:42:53 -07:00
Nick Fitzgerald
b0df5f79e4 Update package-lock.json via npm install 2018-08-08 14:42:21 -07:00
Nick Fitzgerald
998d37a353 Use the JS name of an imported type for instanceof checks 2018-08-08 14:42:21 -07:00
Nick Fitzgerald
5ab3059a45
Merge pull request from gnzlbg/patch-1
Document workaround fo using wasm-bindgen-test from git
2018-08-08 13:02:33 -07:00
gnzlbg
153505f6c7
Document workaround for avoiding duplicated symbols when using wasm-bindgen-test from git 2018-08-08 20:28:49 +02:00
Nick Fitzgerald
9104bf87e9 backend: Rename ast::ImportType::name to ast::ImportType::rust_name
This helps pave the way for adding a js_name, and makes it more clear which name
this is.
2018-08-07 16:09:38 -07:00
Alex Crichton
5b935526ff
Merge pull request from alexcrichton/jscast
Implement RFC  - casting hierarchy between JS values
2018-08-07 17:26:37 -05:00
Nick Fitzgerald
43636977ae
Merge pull request from fitzgen/guide-serde-arbitrary-data
Guide serde arbitrary data
2018-08-07 14:48:45 -07:00
Nick Fitzgerald
81c893b5d8
Merge pull request from fitzgen/guide-closures-and-attributes
guide: add `indexing_{getter,setter,deleter}` attribute pages
2018-08-07 14:44:25 -07:00