Nick Fitzgerald
911a32c0d5
Add the #[wasm_bindgen(static_method_of = Class)]
attribute
...
This is similar to `js_namespace` but translates into a static method on `Class`
rather than a free function. This allows us to have bindings to things like
`Object.keys` as `Object::keys`.
2018-06-25 10:45:53 -07:00
Nick Fitzgerald
56fa901442
js::Object: Sort methods alphabetically
2018-06-25 10:45:53 -07:00
Lachezar Lechev
b81dc46220
String - substr() support
2018-06-24 23:03:39 +02:00
R. Andrew Ohana
7936e1eb27
Merge pull request #305 from sendilkumarn/number-fixed-exponential
...
Adds Number to_fixed and to_exponential function
2018-06-24 12:16:06 -07:00
Sendil Kumar
32bc9f271c
rebase to handle JsString
2018-06-24 20:48:37 +02:00
Sendil Kumar
233b35254f
Merge branch 'master' into number-fixed-exponential
2018-06-24 20:46:53 +02:00
R. Andrew Ohana
243f73e437
Merge pull request #302 from ohanar/JsString
...
js globals: return JsString rather than String
2018-06-24 11:28:39 -07:00
R. Andrew Ohana
21f49d0302
reenable part of js_globals::Number::to_locale_string
2018-06-24 10:43:24 -07:00
Sendil Kumar
f5e050d087
fix url link
2018-06-24 10:10:52 +02:00
Sendil Kumar
0f57398917
Add to_fixed and to_exponential function
2018-06-24 10:08:23 +02:00
R. Andrew Ohana
8abecba983
fix and disable test js_globals::Number::to_locale_string
2018-06-23 18:25:47 -07:00
R. Andrew Ohana
35c5dafdd2
js globals: return JsString rather than String
2018-06-23 17:15:13 -07:00
Nick Fitzgerald
4c7b2677de
Merge pull request #301 from akryvomaz/master
...
bindings for Function.length and Function.name
2018-06-23 16:49:31 -07:00
Nick Fitzgerald
b1cbb56224
Merge branch 'master' into master
2018-06-23 16:19:08 -07:00
Nick Fitzgerald
0f5badf95e
Merge pull request #299 from jonathan-s/number
...
Adds valueOf and toString to Number
2018-06-23 16:04:35 -07:00
R. Andrew Ohana
de11ec1c31
Merge pull request #298 from belfz/expose-bindings/object-value-of
...
implements Object.prototype.valueOf() binding
2018-06-23 15:39:56 -07:00
Alexander Kryvomaz
9e07c4935c
bindings for Function.length and Function.name
2018-06-23 23:41:28 +03:00
Jonathan Sundqvist
6b5974d1bd
Add toLocaleString to Number
2018-06-23 19:03:55 +02:00
Jonathan Sundqvist
f636f7b28d
Add toPrecision to Number
2018-06-23 18:18:58 +02:00
Jonathan Sundqvist
bf56d5815b
Add the binding of to_string to Number
2018-06-23 17:38:13 +02:00
Jonathan Sundqvist
a7f8e071fe
Add the binding valueOf to number
2018-06-23 14:43:43 +02:00
belfz
e255925292
implements Object.prototype.valueOf() binding
2018-06-23 12:11:46 +02:00
R. Andrew Ohana
d79f982a01
Merge pull request #295 from kzvi/js-class-attr
...
add js_class attribute for defining what class an imported method is for
2018-06-22 21:38:14 -07:00
kzvi
5ae6ee7aec
add JsString binding to src/js.rs and tests
2018-06-22 17:51:44 -07:00
Nick Fitzgerald
5f1206445d
Merge pull request #294 from fitzgen/more-docs
...
Fill in some doc comments + tidy up some things
2018-06-22 12:59:17 -07:00
kzvi
2cfffc65d7
add js_class attribute for defining what class an imported method is for
2018-06-22 12:12:43 -07:00
Nick Fitzgerald
3bce3fb7a5
backend: Tidy up whitespace
...
* Remove trailing space on line.
* Ensure that there is a newline at the end of the file.
2018-06-22 11:14:33 -07:00
Nick Fitzgerald
24f72c9680
backend: Remove unused import from ast module
2018-06-22 11:14:16 -07:00
Nick Fitzgerald
c63d57f6d7
Add some more doc comments
2018-06-22 11:10:37 -07:00
Nick Fitzgerald
a804a0e634
Merge branch 'rollup'
2018-06-22 10:57:27 -07:00
Jonathan Sundqvist
99ee74d153
Add binding for concat
2018-06-22 10:55:50 -07:00
Nick Fitzgerald
7825122feb
Merge branch 'expose-bindings/object-to-locale-string' of https://github.com/belfz/wasm-bindgen into rollup
2018-06-22 10:51:17 -07:00
Nick Fitzgerald
ce14de21c3
Merge branch 'array-method' of https://github.com/jonathan-s/wasm-bindgen into rollup
2018-06-22 10:45:33 -07:00
belfz
39465c896c
implements Object.prototype.toLocaleString() binding
2018-06-22 13:36:44 +02:00
Jonathan Sundqvist
a7bb555944
Add Sort to Array
2018-06-22 09:01:41 +02:00
Jonathan Sundqvist
de4eea119d
Make array methods in alphabetical order
2018-06-22 08:59:11 +02:00
robertdurst
a9ca64b689
Implement Array.length binding
2018-06-21 21:30:57 -07:00
Nick Fitzgerald
9e01e67aa3
Merge pull request #289 from wismer/array-iterator-method-bindings
...
Array iterator method bindings
2018-06-21 15:24:25 -07:00
Nick Fitzgerald
22feded106
Merge pull request #288 from belfz/expose-bindings/object-has-own-property-allow-jsvalue
...
allows using &JsValue as an arg to Object's has_own_property
2018-06-21 15:21:54 -07:00
Matt Long
a95476a8ee
add binding for entries method
2018-06-21 17:21:35 -04:00
Matt Long
4cc73877a6
add binding for keys method
2018-06-21 17:00:02 -04:00
belfz
dd3740e2fb
allows using &JsValue as an arg to Object's has_own_property
2018-06-21 22:51:30 +02:00
Nick Fitzgerald
0b29721194
Merge pull request #285 from belfz/expose-bindings/object-property-is-enumerable
...
implements Object.prototype.propertyIsEnumerable() binding
2018-06-21 13:39:09 -07:00
belfz
420eaffcb3
adds missing unit tests for property_is_enumerable
2018-06-21 21:32:03 +02:00
belfz
1e1276410a
implements Object.prototype.isPrototypeOf() binding
2018-06-21 13:56:24 +02:00
R. Andrew Ohana
6ef817b350
Merge pull request #283 from robertDurst/basic-usage-md
...
Basic Usage md clarification
2018-06-21 00:14:13 -07:00
R. Andrew Ohana
bab5bd79a0
Merge pull request #284 from belfz/expose-bindings/object-is-prototype-of
...
implements Object.isPrototypeOf binding
2018-06-21 00:12:10 -07:00
belfz
77ad68673c
implements Object.isPrototypeOf binding
2018-06-21 07:36:24 +02:00
robertdurst
652dab0abf
Basic Usage md clarification
2018-06-20 21:27:30 -07:00
Nick Fitzgerald
669ed4d644
Merge pull request #282 from wismer/non-closure-array-bindings
...
Non closure array bindings
2018-06-20 16:36:22 -07:00