43de00b347
feat(js) Add ArrayBuffer::new
, ::is_view
& ::slice
bindings. ( #388 )
...
* feat(js) Add `ArrayBuffer::new`, `::is_view` & `::slice` bindings.
* fix(js) Fix number units, comments, add `slice_with_end`.
* test(js) Fix a function name.
2018-07-04 13:53:49 -05:00
f5d4751c0b
test(js) Check the types and lightly the data, but not that much.
...
Because NodeJS can have different i18n behaviors depending of the
version, let's keep things simple. In this case, we want to test the
types,
period. Cf. https://github.com/rustwasm/wasm-bindgen/pull/374#issuecomment-402447333
2018-07-04 16:47:51 +02:00
7790b34c07
fix: simplify signatures to avoid Result usage
2018-07-04 16:10:17 +02:00
40b7b069bc
fix: return actual error message
2018-07-04 15:52:12 +02:00
c450fbf237
feat(js) Support exception on WebAssembly::validate
.
2018-07-04 15:51:55 +02:00
008f17143b
fix: Reflect.has target should be &Object
2018-07-04 15:32:34 +02:00
fe25a9a268
feat(js) Implement the WebAssembly.validate
binding.
2018-07-04 15:27:01 +02:00
2694dd4dee
Merge pull request #385 from toVersus/js_date
...
bindings for date.getDay/getFullYear
2018-07-04 14:56:22 +02:00
1397f9b05a
feat: add Reflect.setPrototypeOf
2018-07-04 13:13:35 +02:00
eb3f67a36f
feat: add Reflect.set
2018-07-04 13:08:43 +02:00
fc82ba4ec3
feat: add Reflect.preventExtensions
2018-07-04 12:56:37 +02:00
e36f982391
feat: add Reflect.ownKeys
2018-07-04 12:53:38 +02:00
e95994fd19
bindings for Date.prototype.getFullYear()
2018-07-04 19:52:12 +09:00
eb245d5503
feat: add Reflect.isExtensible
2018-07-04 12:49:07 +02:00
7c297ccfb4
feat: add Reflect.has
2018-07-04 12:44:49 +02:00
3007e813ea
bindings for Date.prototype.getDay()
2018-07-04 19:41:06 +09:00
edddd4b08e
feat: add Reflect.getPrototypeOf
2018-07-04 12:39:56 +02:00
2422c5e945
feat: add Reflect.getOwnPropertyDescriptor
2018-07-04 12:35:40 +02:00
3ba00bc13c
feat: add Reflect.get
2018-07-04 12:31:24 +02:00
5fa18f8f40
feat: add Reflect.deleteProperty
2018-07-04 12:24:52 +02:00
07a726b9dc
feat: add Reflect.defineProperty
2018-07-04 12:17:01 +02:00
13b3b0d87a
feat: add Reflect.construct
2018-07-04 12:07:02 +02:00
592d426e4f
feat: add Reflect.apply
2018-07-04 11:43:34 +02:00
fbbd97bbe0
Merge pull request #380 from akryvomaz/master
...
bindings for Generator.next(), Generator.return() and Generator.throw()
2018-07-03 16:30:46 -07:00
eac2b05b1b
added catch attribute to the Generator methods, consistent rust keyword name
2018-07-04 01:22:56 +03:00
e644ee6dad
Merge pull request #375 from sendilkumarn/fix-node-webpack
...
fix webpack to handle node global functions
2018-07-03 13:50:39 -07:00
b797bbc39c
bindings for Generator.throw()
2018-07-03 23:48:54 +03:00
39d79eb037
bindings for Generator.return()
2018-07-03 23:47:10 +03:00
6e95ba20f1
bindings for Generator.next()
2018-07-03 23:42:49 +03:00
17fde01243
Merge pull request #378 from jhenninger/math-bindings
...
Bindings for Math.pow, round, sign, sin, sinh, sqrt, tan, tanh and trunc
2018-07-03 21:08:28 +02:00
f5075eb3be
use simplified logic
2018-07-03 20:48:31 +02:00
99ca230bdb
add some comments
2018-07-03 20:44:34 +02:00
b689a78351
Bindings for Math.pow, round, sign, sin, sinh, sqrt, tan, tanh and trunc
2018-07-03 20:00:56 +02:00
8f034bc078
fix webpack to handle node global functions
2018-07-03 18:14:30 +02:00
54523d82ed
test(js) Fix expectations regarding given locales.
2018-07-03 14:37:38 +02:00
df5fec22d9
fix(js) Use f64
instead of Number
.
2018-07-03 14:26:00 +02:00
fe4c150431
Merge branch 'master' into js_date
2018-07-03 14:12:05 +02:00
6dede6f20f
Use f64 for most Math.* bindings ( #369 )
2018-07-02 23:41:57 -05:00
4ceaf3e0f4
Some small cleanups ( #366 )
...
* No need for version deps in dev-deps
These are all internal so we can drop the version
* Remove wasm-bindgen-cli's parity-wasm dep
No longer needed
* Tweak file hierarchy in webidl tests
Use Cargo's conventions to avoid the need to define `[[test]]` sections
* Remove unused imports
2018-07-02 11:57:39 -05:00
dcb3415da8
Expose bindings/object is* methods ( #363 )
...
* implements Object.isExtensible() binding
* implements Object.isFrozen() binding
* implements Object.isSealed() binding
2018-07-02 10:32:16 -05:00
37fc159061
implements Object.preventExtensions() binding ( #364 )
2018-07-02 10:31:40 -05:00
10ffe8b3be
Merge pull request #361 from brisad/string-lower-and-upper-case
...
Bindings for string lower and upper case
2018-07-02 09:26:47 +02:00
1d04203e89
implements Object.values() binding
2018-07-01 23:50:10 +02:00
d5d451b94b
Add binding for String.prototype.toUpperCase
2018-07-01 23:12:42 +02:00
58560f1408
Add binding for String.prototype.toLowerCase
2018-07-01 23:11:13 +02:00
bfffd58683
Merge pull request #359 from akryvomaz/master
...
bindings for Function.prototype.bind, decodeURIComponent, encodeURIComponent
2018-07-01 16:55:18 +02:00
609bf34d60
bindings for encodeURIComponent
2018-07-01 15:59:12 +03:00
0f07dd9048
bindings for decodeURIComponent
2018-07-01 15:53:44 +03:00
f850a6fafc
bindings for Function.prototype.bind()
2018-07-01 15:44:36 +03:00
ce9b95635d
implements Object.setPrototypeOf() binding
2018-07-01 11:52:22 +02:00