Lachezar Lechev
b81dc46220
String - substr() support
2018-06-24 23:03:39 +02: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
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
35c5dafdd2
js globals: return JsString rather than String
2018-06-23 17:15:13 -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
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
c63d57f6d7
Add some more doc comments
2018-06-22 11:10:37 -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
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
belfz
1e1276410a
implements Object.prototype.isPrototypeOf() binding
2018-06-21 13:56:24 +02:00
belfz
77ad68673c
implements Object.isPrototypeOf binding
2018-06-21 07:36:24 +02:00
Matt Long
a8cd428850
add binding for includes
2018-06-20 18:36:10 -04:00
Matt Long
eb6c2a239c
add binding for toString
2018-06-20 18:23:26 -04:00
Matt Long
3cf522d2df
add bindings for unshift
2018-06-20 18:07:30 -04:00
Matt Long
68acbeab25
add binding for shift
2018-06-20 18:03:26 -04:00
Matt Long
d705cd8bbf
add binding for reverse
2018-06-20 18:00:58 -04:00
Matt Long
4611d7bdba
add binding for push
2018-06-20 17:58:15 -04:00
Matt Long
73081180cd
add binding for pop
2018-06-20 17:55:25 -04:00
Matt Long
2f6f734216
add binding for copyWithin
2018-06-20 17:51:02 -04:00
Matt Long
d155136f0e
add binding for fill
2018-06-20 17:49:34 -04:00
Matt Long
e8bb0c2f98
add binding for slice
2018-06-20 17:46:10 -04:00
Matt Long
0b80888c0d
add binding for join
2018-06-20 17:38:47 -04:00
Matt Long
667733e929
add binding for lastIndexOf
2018-06-20 17:36:35 -04:00
Matt Long
4a96ba3c72
add binding for indexOf
2018-06-20 17:23:38 -04:00
Jonathan Sundqvist
d89c7958eb
Js binding for to_string
2018-06-20 21:55:41 +02:00
Nick Fitzgerald
161fce9d50
Expose objects and functions from the JavaScript global scope
...
These are bindings to JavaScript's standard, built-in objects and their methods
and properties.
This does *not* include any Web, Node, or any other JS environment APIs. Only
the things that are guaranteed to exist in the global scope by the ECMAScript
standard.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
2018-06-18 16:41:01 -07:00
Nick Fitzgerald
e4dcb8f85e
Add associated constants for common JS values
2018-06-18 16:41:01 -07:00
Alex Crichton
659583b40d
Implement PartialEq
for JsValue
( #217 )
...
Dispatch to JS's `===` operator internally
2018-06-01 16:47:45 -05:00
Alex Crichton
cb1e5cf136
Optimize JsValue::{from_bool, undefined, null} constructors ( #220 )
...
This commit optimizes constructing an instance of `JsValue` which is one of
`null`, `undefined`, `true`, or `false`. These are commonly created on the Rust
side of things and since there's only a limited set of values we can easily
prepopulate the global slab with a few entries and use hardcoded indices to
refer to these constants. This should avoid the need to travel into JS to insert
a `null` or and `undefined` into the global slab.
2018-06-01 16:46:42 -05:00
Robert Masen
4ddd93d75d
add char support ( #206 )
...
* add char support
* add char test
* remove __wbindgen_char fns
* re-order travis script
* update serve script
* remove binds to unused char functions
* add more wide character items to chars list
* remove unused code
* add char to readme
* remove built file
2018-05-22 12:34:41 -05:00
Alex Crichton
237fff0698
Map u64/i64 to BigInt in JS
...
This commit is an implementation of mapping u64/i64 to `BigInt` in JS through
the unstable BigInt APIs. The BigInt type will ship soon in Chrome and so this
commit builds out the necessary support for wasm-bindgen to use it!
2018-05-05 18:51:20 -07:00