Commit Graph

937 Commits

Author SHA1 Message Date
Nick Fitzgerald
d27f5e75c8
Merge pull request #370 from rustwasm/mdbook-design
Add `design.md` to the online mdbook
2018-07-03 09:50:18 -07:00
Sendil Kumar
8f034bc078 fix webpack to handle node global functions 2018-07-03 18:14:30 +02:00
konstin
66096804ce Fix the constructor explanation in the guide (#372) 2018-07-03 09:24:43 -05:00
Ivan Enderlin
54523d82ed
test(js) Fix expectations regarding given locales. 2018-07-03 14:37:38 +02:00
Ivan Enderlin
df5fec22d9
fix(js) Use f64 instead of Number. 2018-07-03 14:26:00 +02:00
Ivan Enderlin
fe4c150431
Merge branch 'master' into js_date 2018-07-03 14:12:05 +02:00
R. Andrew Ohana
9339a55f3e
Merge pull request #303 from teovoinea/master
Added is_chrome_only (#244)
2018-07-02 23:50:04 -07:00
Johannes Henninger
6dede6f20f Use f64 for most Math.* bindings (#369) 2018-07-02 23:41:57 -05:00
teovoinea
7cd3ca02a2 Update with masters and fix PR changes 2018-07-02 20:35:05 -07:00
Alex Crichton
b171629ed1 Add design.md to the online mdbook
At the same time split it up into some more digestable sections
2018-07-02 18:49:47 -07:00
Alex Crichton
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
Marcin Baraniecki
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
Marcin Baraniecki
37fc159061 implements Object.preventExtensions() binding (#364) 2018-07-02 10:31:40 -05:00
Sendil Kumar N
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
Sendil Kumar N
c0333cdcc9
Merge pull request #362 from belfz/expose-bindings/object-values
implements Object.values() binding
2018-07-02 09:24:22 +02:00
belfz
1d04203e89 implements Object.values() binding 2018-07-01 23:50:10 +02:00
Michael Hoffmann
d5d451b94b Add binding for String.prototype.toUpperCase 2018-07-01 23:12:42 +02:00
Michael Hoffmann
58560f1408 Add binding for String.prototype.toLowerCase 2018-07-01 23:11:13 +02:00
Jonathan Sundqvist
bfffd58683
Merge pull request #359 from akryvomaz/master
bindings for Function.prototype.bind, decodeURIComponent, encodeURIComponent
2018-07-01 16:55:18 +02:00
Jonathan Sundqvist
489562ae1b
Merge pull request #358 from belfz/expose-bindings/object-set-prototype-of
implements Object.setPrototypeOf() binding
2018-07-01 16:47:34 +02:00
Alexander Kryvomaz
609bf34d60 bindings for encodeURIComponent 2018-07-01 15:59:12 +03:00
Alexander Kryvomaz
0f07dd9048 bindings for decodeURIComponent 2018-07-01 15:53:44 +03:00
Alexander Kryvomaz
f850a6fafc bindings for Function.prototype.bind() 2018-07-01 15:44:36 +03:00
belfz
ce9b95635d implements Object.setPrototypeOf() binding 2018-07-01 11:52:22 +02:00
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