Commit Graph

754 Commits

Author SHA1 Message Date
Jonathan Sundqvist
d40a314a91 Add acosh to Math 2018-06-25 22:52:04 +02:00
Jonathan Sundqvist
230650055c Add acos to Math 2018-06-25 22:52:04 +02:00
Jonathan Sundqvist
9633642e6e Add abs to Math 2018-06-25 22:52:04 +02:00
Jonathan Sundqvist
ee31080b09 Format comments so they become more readable in editor 2018-06-25 22:52:04 +02:00
Lachezar Lechev
44444920a4 Merge branch 'master' into string-support 2018-06-25 22:20:38 +02:00
Nick Fitzgerald
76fcbf3c44
Merge pull request #307 from elpiel/string-substr
`String.prototype.substr()` support
2018-06-25 12:52:49 -07:00
Lachezar Lechev
8e8a02bf73 js.rs - remove todo 2018-06-25 21:32:48 +02:00
Lachezar Lechev
36e79d23c4 String - startsWith/substring/indexOf 2018-06-25 21:30:04 +02:00
R. Andrew Ohana
09cf02d41a
Merge pull request #311 from fitzgen/faster-mdbook-ci
ci: Cache mdbook installs to reduce CI build time
2018-06-25 12:01:26 -07:00
Nick Fitzgerald
7a688d6967
Merge branch 'master' into string-substr 2018-06-25 11:31:42 -07:00
Lachezar Lechev
d28d81f38d Add basic support for String.prototype.charAt() (#306)
* String - charAt() implementation

* String - charAt() - add js_class
2018-06-25 11:24:44 -07:00
Nick Fitzgerald
245f0f0eea
Merge pull request #296 from fitzgen/attribute-for-static-methods
Attribute for static methods
2018-06-25 11:14:48 -07:00
Nick Fitzgerald
5b86ee0c18 ci: Cache mdbook installs to reduce CI build time
We spend a lot of time installing and compiling `mdbook` from source. This
caches `mdbook` across builds.
2018-06-25 10:59:42 -07:00
Nick Fitzgerald
8fbf478058 Move some utility functions from the webidl crate into the backend crate 2018-06-25 10:45:53 -07:00
Nick Fitzgerald
eb04d15a65 js: Add bindings to Object.keys 2018-06-25 10:45:53 -07:00
Nick Fitzgerald
21fa3beabd backend: Add some trailing commas that rustfmt prefers 2018-06-25 10:45:53 -07:00
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