Commit Graph

126 Commits

Author SHA1 Message Date
fe6ad5447e Add binding for Object.defineProperty() 2018-09-12 07:39:39 +02:00
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
bfff31fcb9 js-sys: Expose bindings to WebAssembly.Table.prototype.set
Part of #275
2018-09-06 15:02:01 -07:00
8dbb0fc5f2 js-sys: Expose bindings to WebAssembly.Table.prototype.grow
Par of #275
2018-09-06 14:58:46 -07:00
2d4f36c9da js-sys: Add bindings to WebAssembly.Table.prototype.get
Part of #275
2018-09-06 14:54:49 -07:00
fb5e6e9c06 js-sys: Add bindings for WebAssembly.instantiateStreaming
Part of #275
2018-09-06 14:47:37 -07:00
021cbbab71 js-sys: Add bindings for WebAssembly.instantiate
Part of #275
2018-09-06 14:35:45 -07:00
8b5f5a7560 js-sys: Add exports getter to WebAssembly.Instance
Part of #275
2018-09-06 14:16:28 -07:00
cb2aa999c0 js-sys: Define imports for WebAssembly.Instance and its constructor
Part of #670 and #275
2018-09-06 14:16:18 -07:00
66d155d708 js-sys: Add extends to Reflect
Part of #670
2018-09-06 13:42:16 -07:00
bfff8661c1 js-sys: Add extends to Math
Part of #670
2018-09-06 13:39:30 -07:00
5df2347a7a js-sys: Add extends to JSON
Part of #670
2018-09-06 13:32:31 -07:00
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
042cfad5ce feat(extends): extend promise 2018-08-24 02:15:02 +02:00
1ea1410f98 Catch errors in Table and Module constructors 2018-08-20 22:12:29 +02:00
7432f5ff5c Merge branch 'master' of git://github.com/rustwasm/wasm-bindgen 2018-08-20 21:55:42 +02:00
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
1e27b588e2 feat(js-sys) Implement String.replace(&str, …). 2018-08-20 11:01:56 +02:00
a9a1e69f30 feat(js-sys) Implement String.split with regexp. 2018-08-20 10:42:12 +02:00
6d49c76bc4 Merge pull request #734 from alexcrichton/stabilize
Remove `use_extern_macros` features
2018-08-19 18:12:00 -07:00
19ee28d769 Don’t need catch for Module static methods 2018-08-20 01:50:27 +02:00
d4297ad2d3 Remove use_extern_macros features
This has now been stabilized!
2018-08-19 14:33:01 -07:00
4f294224f0 Add bindings for String.prototype.split 2018-08-19 15:09:45 -04:00
8698084a43 Add binding for String.prototype.search 2018-08-19 14:52:10 -04:00
44877880bb Add bindings for String.prototype.replace 2018-08-19 14:42:22 -04:00
7b53b1c88e Add binding for String.prototype.match 2018-08-19 13:59:00 -04:00
b330bd1bf1 Refactor inheritance checks into their own tests 2018-08-19 11:27:04 -05:00
1762b3cba0 Add extends to js-sys:Intl.PluralRules 2018-08-19 11:03:55 -05:00
ee131888da Add extends to js-sys:Intl.NumberFormat 2018-08-19 10:19:03 -05:00
780c7236f1 Add extends to js-sys:Intl.DateTimeFormat 2018-08-19 10:13:25 -05:00
f0811d5ac0 Add extends to js-sys:Intl.Collater 2018-08-19 10:03:56 -05:00
9c6225fd80 Merge pull request #720 from kraai/patch-1
Test for and add extends attributes
2018-08-18 22:15:30 -07:00
3697ddf4c0 Merge pull request #723 from mstallmo/add-extends-to-js-sys
Add extends attributes for js_sys:Generator
2018-08-18 22:09:16 -07:00
a12fc46a55 Merge pull request #728 from quelledanielle/js_string_from_code_point
Add bindings for String.from_code_point
2018-08-18 22:08:48 -07:00
27d48ad267 Add bindings for String.from_code_point 2018-08-18 21:35:38 -04:00
0d3f706195 Add binding for String.prototype.localeCompare 2018-08-18 21:05:02 -04:00
c543b5d149 Add extends attributes for js_sys:Generator 2018-08-18 09:11:07 -05:00
751f226170 Merge branch 'master' of git://github.com/rustwasm/wasm-bindgen 2018-08-18 01:58:11 +02:00
6dccb7f777 Remove blank line
Part of #670
2018-08-17 14:50:15 -07:00
bec3178e3c Make all errors extend Object
Part of #670
2018-08-17 13:10:56 -07:00
687412ec50 Test for AsRef implementations
Part of #670
2018-08-17 13:09:30 -07:00
c8d0c57990 Check that all errors are instances of Object
Part of #670
2018-08-16 07:14:12 -07:00
b698eb5d6a Add more WebAssembly bindings 2018-08-15 23:45:28 +02:00
190b45d59c Merge pull request #708 from sendilkumarn/extends-arr
Adds Extends to TypedArrays
2018-08-15 23:45:04 +02:00
af9ecac296 js-sys: Add extends attributes for js_sys::Float64Array
address review comments

add review comments
2018-08-15 22:50:27 +02:00
d9fbc48daa js-sys: Add extends attributes for js_sys::Float32Array 2018-08-14 19:38:33 +02:00
10bc69a8cd js-sys: Add extends attributes for js_sys::Int32Array 2018-08-14 19:34:59 +02:00
2d737c5634 js-sys: Add extends attributes for js_sys::Int16Array 2018-08-14 19:34:43 +02:00
17ef5f9702 js-sys: Add extends attributes for js_sys::Int8Array 2018-08-14 19:34:26 +02:00
b80090d395 js-sys: Add extends attributes for js_sys::UInt32Array 2018-08-14 19:32:34 +02:00