Nick Fitzgerald
dc22965e71
js-sys: Add doc comment for js_sys::Iter
2018-09-25 11:21:56 -07:00
Alex Crichton
51ec485c94
Bump to 0.2.22
2018-09-21 13:41:58 -07:00
Ivan Enderlin
54b2482d03
doc(readme) Add links to doc & clean
...
This patch adds a link to the crate's documentation. It also removes a reference to #275 , which is closed now.
2018-09-21 10:08:11 +02:00
Alex Crichton
3efe51eb8b
Reorganize and rewrite examples
...
This commit is a large-ish scale reorganization of our examples. The
main goal here is to have a dedicated section of the guide for example,
and all examples will be listed there. Each example's `README` is now
just boilerplate pointing at the guide along with a blurb about how to
run it.
Some examples like `math` and `smorgasboard` have been deleted as they
didn't really serve much purpose, and others like `closures` have been
rewritten with `web-sys` instead of hand-bound bindings.
Overall it's hoped that this puts us in a good and consistent state for
our examples, with all of them being described in the guide, excerpts
are in the guide, and they're all relatively idiomatically using
`web-sys`.
2018-09-20 16:45:30 -07:00
Anton Danilkin
f808594efa
Add String.raw
2018-09-20 00:40:14 +03:00
Michael Hoffmann
f7b511588b
Add binding for Object.entries()
2018-09-19 21:32:05 +02:00
Michael Hoffmann
326e4c0262
Add binding for Object.getPrototypeOf()
2018-09-19 21:10:40 +02:00
Michael Hoffmann
76969bd1e3
Add binding for Object.getOwnPropertySymbols()
2018-09-19 20:58:46 +02:00
Michael Hoffmann
4e18493fd7
Add binding for Object.getOwnPropertyNames()
2018-09-19 20:43:50 +02:00
Alex Crichton
a83d561bb3
Add js_sys::global
2018-09-18 15:40:49 -07:00
Michael Hoffmann
2d91fa11b5
Add binding for Object.getOwnPropertyDescriptors()
2018-09-16 23:02:46 +02:00
Michael Hoffmann
b005e96fd9
Add binding for Object.getOwnPropertyDescriptor()
2018-09-16 22:55:15 +02:00
Michael Hoffmann
191e7dc1fb
Add binding for Object.defineProperties()
2018-09-15 22:30:27 +02:00
Michael Hoffmann
fe6ad5447e
Add binding for Object.defineProperty()
2018-09-12 07:39:39 +02:00
Alex Crichton
f2608d3155
Implement the Iterator
trait for JS iterators
...
This commit implements the standard library's `Iterator` trait for the
`js_sys::Iterator` type, using the iterator protocol described on [MDN]
Closes #777
[MDN]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
2018-09-10 10:38:04 -07:00
Alex Crichton
f18b10ca52
Bump to 0.2.21
2018-09-06 22:10:11 -07:00
Alex Crichton
1cd2229c66
Merge pull request #795 from fitzgen/lots-more-js-sys-bindings
...
Lots more js-sys bindings
2018-09-06 16:42:18 -07:00
Nick Fitzgerald
bfff31fcb9
js-sys: Expose bindings to WebAssembly.Table.prototype.set
...
Part of #275
2018-09-06 15:02:01 -07:00
Nick Fitzgerald
8dbb0fc5f2
js-sys: Expose bindings to WebAssembly.Table.prototype.grow
...
Par of #275
2018-09-06 14:58:46 -07:00
Nick Fitzgerald
2d4f36c9da
js-sys: Add bindings to WebAssembly.Table.prototype.get
...
Part of #275
2018-09-06 14:54:49 -07:00
Alex Crichton
9d5898ab48
Bump to 0.2.20
2018-09-06 14:49:43 -07:00
Nick Fitzgerald
fb5e6e9c06
js-sys: Add bindings for WebAssembly.instantiateStreaming
...
Part of #275
2018-09-06 14:47:37 -07:00
Nick Fitzgerald
021cbbab71
js-sys: Add bindings for WebAssembly.instantiate
...
Part of #275
2018-09-06 14:35:45 -07:00
Nick Fitzgerald
8b5f5a7560
js-sys: Add exports
getter to WebAssembly.Instance
...
Part of #275
2018-09-06 14:16:28 -07:00
Nick Fitzgerald
cb2aa999c0
js-sys: Define imports for WebAssembly.Instance
and its constructor
...
Part of #670 and #275
2018-09-06 14:16:18 -07:00
Nick Fitzgerald
66d155d708
js-sys: Add extends
to Reflect
...
Part of #670
2018-09-06 13:42:16 -07:00
Nick Fitzgerald
bfff8661c1
js-sys: Add extends
to Math
...
Part of #670
2018-09-06 13:39:30 -07:00
Nick Fitzgerald
5df2347a7a
js-sys: Add extends
to JSON
...
Part of #670
2018-09-06 13:32:31 -07:00
Nick Fitzgerald
26c351ecf4
js-sys: Make MDN URLs into links
2018-08-27 15:18:48 -07:00
Alex Crichton
d9bc0a3176
Bump to 0.2.19
2018-08-27 13:39:23 -07: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
Alex Crichton
bb7ca348c2
Add WebAssembly.Memory to js-sys
...
This adds definitions for the `WebAssembly.Memory` type to `js-sys`.
2018-08-26 15:40:37 -07:00
Roberto Huertas
042cfad5ce
feat(extends): extend promise
2018-08-24 02:15:02 +02:00
Frazer McLean
1ea1410f98
Catch errors in Table and Module constructors
2018-08-20 22:12:29 +02:00
Frazer McLean
7432f5ff5c
Merge branch 'master' of git://github.com/rustwasm/wasm-bindgen
2018-08-20 21:55:42 +02:00
Alex Crichton
a4bf239eff
Merge pull request #739 from Hywan/string-replace-regexp
...
feat(js-sys) Implement `String.replace(&str, …)`
2018-08-20 07:55:05 -07:00
Ivan Enderlin
1e27b588e2
feat(js-sys) Implement String.replace(&str, …)
.
2018-08-20 11:01:56 +02:00
Ivan Enderlin
a9a1e69f30
feat(js-sys) Implement String.split
with regexp.
2018-08-20 10:42:12 +02:00
Alex Crichton
6d49c76bc4
Merge pull request #734 from alexcrichton/stabilize
...
Remove `use_extern_macros` features
2018-08-19 18:12:00 -07:00
Frazer McLean
19ee28d769
Don’t need catch for Module static methods
2018-08-20 01:50:27 +02:00
Alex Crichton
d4297ad2d3
Remove use_extern_macros
features
...
This has now been stabilized!
2018-08-19 14:33:01 -07:00
Danielle Pham
4f294224f0
Add bindings for String.prototype.split
2018-08-19 15:09:45 -04:00
Danielle Pham
8698084a43
Add binding for String.prototype.search
2018-08-19 14:52:10 -04:00
Danielle Pham
44877880bb
Add bindings for String.prototype.replace
2018-08-19 14:42:22 -04:00
Danielle Pham
7b53b1c88e
Add binding for String.prototype.match
2018-08-19 13:59:00 -04:00
Mason Stallmo
b330bd1bf1
Refactor inheritance checks into their own tests
2018-08-19 11:27:04 -05:00
Mason Stallmo
1762b3cba0
Add extends to js-sys:Intl.PluralRules
2018-08-19 11:03:55 -05:00
Mason Stallmo
ee131888da
Add extends to js-sys:Intl.NumberFormat
2018-08-19 10:19:03 -05:00
Mason Stallmo
780c7236f1
Add extends to js-sys:Intl.DateTimeFormat
2018-08-19 10:13:25 -05:00
Mason Stallmo
f0811d5ac0
Add extends to js-sys:Intl.Collater
2018-08-19 10:03:56 -05:00