Commit Graph

710 Commits

Author SHA1 Message Date
Alex Crichton
cf08aee341 Tidy up a test 2018-06-30 11:19:27 -07:00
Alex Crichton
e06255fba5 Don't generate JS bindings for unused imports
If a JS import's shim isn't actually imported that means that somewhere along
the way it was optimized out or it was never used in the first place! In that
case we can skip generation of the JS bindings for it as it's not needed.
2018-06-29 15:56:12 -07:00
Nick Fitzgerald
e93dc34f2f
Merge pull request #354 from rail44/js-erorr
Add support for js::Error
2018-06-29 10:16:35 -07:00
Satoshi Amemiya
f9c804db20 Add support for js::Error 2018-06-29 23:24:46 +09:00
Alex Crichton
942673e15f Disable formatting on Travis 2018-06-28 18:35:15 -07:00
Alex Crichton
e55af85edc
Support by-value self methods (#348)
Refactor slightly to use the same internal support that the other reference
conversions are using.

Closes #329
2018-06-28 20:09:11 -05:00
Alex Crichton
9a3ff77ea9
Support returning custom types in imports (#350)
Closes #320
2018-06-28 20:08:02 -05:00
Alex Crichton
4138583dff
Support wildcard arguments in foreign functions (#351)
No real reason to not support them!

Closes #346
2018-06-28 20:06:35 -05:00
Nick Fitzgerald
37293ee42a
Merge pull request #344 from autodidaddict/math-externs
Binding for Math.cos,cosh,exp,expml,fround,imul,log,log10,log1p,log2
2018-06-28 15:52:45 -07:00
Nick Fitzgerald
5ff6329d29
Merge pull request #349 from jannikkeye/bindings-map
Add bindings for Map.xx
2018-06-28 15:46:07 -07:00
Nick Fitzgerald
e31da84bce
Merge pull request #340 from ohanar/rustfmt
Use rustfmt for standarized formatting
2018-06-28 15:17:23 -07:00
Nick Fitzgerald
d8a98755e2 Add @sendilkumarn to the team! \o/ (#352) 2018-06-28 17:00:33 -05:00
Jannik Keye
d868ff26ef Add bindings for Set.xx (#347)
* feat(Set): add Set.add

* feat(Set): add Set.clear

* feat(Set): add Set.delete

* feat(Set): add Set.has

* feat(Set): add Set.new

* feat(Set): add Set.size

* feat(Set/SetIterator): add Set.entries

* feat(Set/SetIterator): add Set.keys

* feat(Set/SetIterator): add Set.values
2018-06-28 15:57:49 -05:00
Chris Kolodin
9193218648 add bindings for array.prototype.some() (#341)
following the example set in https://github.com/rustwasm/wasm-bindgen/pull/314
2018-06-28 15:57:01 -05:00
Jannik Keye
e0a70417ce feat(Map/MapIterator): add Map.values 2018-06-28 22:00:02 +02:00
Jannik Keye
fc131ee97e feat(Map/MapIterator): add Map.keys 2018-06-28 21:59:11 +02:00
Jannik Keye
228abaa4ae feat(Map/MapIterator): add Map.entries 2018-06-28 21:58:34 +02:00
Jannik Keye
ea19775639 feat(Map): add Map.size 2018-06-28 21:56:49 +02:00
Jannik Keye
6f90bd677b feat(Map): add Map.set 2018-06-28 21:55:55 +02:00
Jannik Keye
27ee57175a feat(Map): add Map.new 2018-06-28 21:55:10 +02:00
Jannik Keye
07e61e1175 feat(Map): add Map.has 2018-06-28 21:54:10 +02:00
Jannik Keye
e0b399643a feat(Map): add Map.get 2018-06-28 21:53:20 +02:00
Jannik Keye
f7e4019e72 feat(Map): add Map.delete 2018-06-28 21:52:27 +02:00
Jannik Keye
ab0546963b feat(Map): add Map.clear 2018-06-28 21:51:39 +02:00
Kevin Hoffman
81e68517f2 Adding line separator in code docs above MDN URLs. 2018-06-28 15:05:10 -04:00
Nick Fitzgerald
2f465d3d23
Merge pull request #345 from fitzgen/add-jonathan-s-to-the-team
Add @jonathan-s to the team! \o/
2018-06-28 11:14:50 -07:00
Nick Fitzgerald
9dd950a1cb Add @jonathan-s to the team! \o/ 2018-06-28 09:53:36 -07:00
Kevin Hoffman
3e84b97de2 Binding for Math.cos,cosh,exp,expml,fround,imul,log,log10,log1p,log2 2018-06-28 12:46:53 -04:00
R. Andrew Ohana
7626b55d00 fix up some strings that looked funky after rustfmt 2018-06-27 22:45:33 -07:00
R. Andrew Ohana
9127a0419f rustfmt all the things 2018-06-27 22:42:34 -07:00
R. Andrew Ohana
a29e71ec49 ci: check formatting 2018-06-27 22:38:16 -07:00
R. Andrew Ohana
c608d46a56
Merge pull request #338 from fitzgen/static-method-of-docs
guide: Add note about `static_method_of` attribute to design doc
2018-06-27 16:15:29 -07:00
Nick Fitzgerald
d3201a11af guide: Add note about static_method_of attribute to design doc 2018-06-27 14:58:53 -07:00
Nick Fitzgerald
40722b7ae3
Merge pull request #333 from Hywan/js_boolean
feat(js) Implement `Boolean` bindings.
2018-06-27 14:36:00 -07:00
Nick Fitzgerald
5aa648a2e8
Merge pull request #335 from xeqlol/weakset-bindings
Implement Weakset bindings
2018-06-27 14:27:48 -07:00
Nick Fitzgerald
e40a359278
Merge pull request #336 from belfz/expose-bindings/array-prototype-every
implements Array.prototype.every()
2018-06-27 09:11:21 -07:00
Nick Fitzgerald
4ba61c1c20
Merge pull request #332 from Hywan/js_test
test(js) Fix file permissions, and update a comment
2018-06-27 09:08:26 -07:00
Nick Fitzgerald
4b2726d796
Merge pull request #331 from gaurikholkar/math-bindings
binding for Math.floor
2018-06-27 09:07:40 -07:00
belfz
dacf406dbd implements Array.prototype.every() 2018-06-27 13:45:47 +02:00
Dimitrii Nemkov
72be16c8ff Forgotten comment 2018-06-27 13:48:32 +05:00
Dimitrii Nemkov
761a9272ca Added WeakSet delete method 2018-06-27 13:44:01 +05:00
Dimitrii Nemkov
6b798a3508 Added WeakSet add method 2018-06-27 13:38:33 +05:00
Dimitrii Nemkov
846e5aaacc Added WeakSet has method 2018-06-27 13:26:53 +05:00
Dimitrii Nemkov
a0dda505d9 Added WeakSet constructor 2018-06-27 13:15:47 +05:00
Ivan Enderlin
91bc7a199c
feat(js) Implement Boolean bindings.
Cf https://github.com/rustwasm/wasm-bindgen/issues/275.
2018-06-27 09:07:47 +02:00
Ivan Enderlin
c99c0f8483
test(js) Fix file permissions, and update a comment. 2018-06-27 08:33:37 +02:00
gaurikholkar
073cf7455b binding for Math.floor 2018-06-27 10:44:43 +05:30
Nick Fitzgerald
c16b9a903c
Merge pull request #330 from elpiel/string-prototypes
String - length, trim, trimLeft, trimRight, trimStart, trimEnd, valueOf, toString
2018-06-26 17:10:15 -07:00
Lachezar Lechev
16517fadcb String - toString and valueOf 2018-06-26 22:21:51 +02:00
Lachezar Lechev
9f087241a1 String - length, trim, trimStart & trimLeft, trimEnd & trimRight 2018-06-26 22:10:25 +02:00