Commit Graph

2085 Commits

Author SHA1 Message Date
Alex Crichton
20e871f676 Fix an issue where closure rewriting required class internals
Surfaced through previous sanity-checking commits, this reorders some
internal operations to...

Closes #1174
2019-01-14 15:53:29 -08:00
Alex Crichton
b21489368c Ensure internal exported_classes map is consistent
Throw it in an `Option` and then `take()` it when we consume it to
ensure that future calls to insert data into it panic instead of
producing inconsistent JS.
2019-01-14 15:53:29 -08:00
Alex Crichton
c0ddabcca1 Sanity check exposed_globals map
Make sure that we don't actually try to expose something when they've
already been written, causing an internal tool panic rather than wrong
JS.
2019-01-14 13:09:05 -08:00
Alex Crichton
666c1e4584
Merge pull request #1169 from lcnr/master
fix spawn_local
2019-01-14 12:38:29 -08:00
lcnr/Bastian Kauschke
6e08f579a6 add temporary test 2019-01-14 21:04:29 +01:00
lcnr/Bastian Kauschke
4e611c318e fix spawn_local 2019-01-12 17:42:05 +01:00
Alex Crichton
12893183b6
Merge pull request #1164 from alexcrichton/fix-tests
Fix and execute wasm-bindgen-wasm-interpreter tests
2019-01-11 18:45:47 -08:00
Alex Crichton
1a10ecc8e7
Merge pull request #1152 from derekdreery/webidl_sequence
Use JsValue for webidl sequence.
2019-01-11 13:20:50 -08:00
Alex Crichton
61a6fcfced Fix and execute wasm-bindgen-wasm-interpreter tests 2019-01-11 13:20:08 -08:00
Alex Crichton
50ee0ab86c
Merge pull request #1165 from alexcrichton/working-workspace
Exclude the `typescript` crate from the workspace
2019-01-11 12:49:54 -08:00
Richard Dodd
cb8bf9390d Implement webidl sequences. 2019-01-11 19:14:07 +00:00
Alex Crichton
ff3986aeb9 Exclude the typescript crate from the workspace
This'll help get `cargo build --all` and similar commands working. While
not critical at all, I execute it from time to time and it's a bummer
when it doesn't work!
2019-01-11 10:29:37 -08:00
Alex Crichton
6b13a865cb
Merge pull request #1162 from rylev/remove-web-sys-bindings-list
Simply remove the web-sys bindings 'tested' list
2019-01-11 09:05:39 -08:00
Ryan Levick
c056235530 Simply remove the web-sys bindings 'tested' list 2019-01-10 19:06:11 +01:00
Alex Crichton
b04f60cf2b Bump to 0.2.31 2019-01-09 09:17:50 -08:00
Alex Crichton
f404182c47 Fix a typo 2019-01-07 11:00:15 -08:00
Alex Crichton
9dced1d99b
Merge pull request #1147 from alexcrichton/more-slicing
Add conversions between typed arrays and Rust
2019-01-07 12:59:38 -06:00
Alex Crichton
8b0416a0e5
Merge pull request #1155 from derekdreery/fix_dictionaries
Make dictionaries use their original text in js
2019-01-07 12:45:15 -06:00
Richard Dodd
8bc9fad103 Fix error 2019-01-07 17:40:42 +00:00
Richard Dodd
3d2efb0dff Add test to check case of field. 2019-01-07 17:09:10 +00:00
Alex Crichton
194a169c24
Merge pull request #1148 from derekdreery/spawn_local
Spawn local
2019-01-07 10:27:44 -06:00
Alex Crichton
fbf000a508 Bump to 0.2.30 2019-01-07 07:47:07 -08:00
Richard Dodd
687fc278a7 Revert previous change. 2019-01-07 14:23:10 +00:00
Richard Dodd
46d4330637 Make dictionaries use their original text in js 2019-01-07 14:15:00 +00:00
Richard Dodd
73913c99f2 Relax bound on Future 2019-01-05 18:10:14 +00:00
Richard Dodd
25ac4549a0 Docs 2019-01-05 14:37:39 +00:00
Richard Dodd
c849ef3cf4 Add naive spawn_local implementation + tests
This is just a naive implementation. It seems it can be improved using a
custom task queue, but that can be in a separate PR.
2019-01-05 14:34:50 +00:00
Alex Crichton
2d7f601696 Add conversions between typed arrays and Rust
For all typed arrays, this commit adds:

* `TypedArray::view(src: &[Type])`
* `TypedArray::copy_to(&self, dst: &mut [Type])`

The `view` function is unsafe because it doesn't provide any guarantees
about lifetimes or mutability. The `copy_to` function is, however, safe.

Closes #811
2019-01-04 10:42:14 -08:00
Alex Crichton
1758c8d5af
Merge pull request #1145 from alexcrichton/less-gc
Fix order of export/gc
2019-01-04 10:07:56 -06:00
Alex Crichton
b4f172899c Fix order of export/gc
We might gc a table away so if we need to export it be sure to do so
before we gc! Additionally remove an extraneous gc that snuck in at some
point, no need to do more than one.

Closes #1130
2019-01-03 11:38:28 -08:00
Alex Crichton
bea4dfc0c2
Merge pull request #1142 from andrewdavidmackenzie/patch-1
Remove separators that cause numbering jumps
2019-01-02 11:50:28 -06:00
Alex Crichton
929be71c32
Merge pull request #1138 from tomhoule/fix-small-formatting-issue
Fix tiny comment formatting issue in docs
2019-01-02 10:36:57 -06:00
Alex Crichton
47c4347955 Update UI tests 2019-01-02 08:35:05 -08:00
Alex Crichton
8f23ee6a59
Merge pull request #1137 from DBarney/patch-1
fixing a small spelling error
2019-01-02 10:32:47 -06:00
Andrew Mackenzie
4139fc10f7
Remove separators that cause numbering jumps
I have removed the "--------------------" separators as they cause a section number to be skipped and hence incorrect section numbering in the left panel TOC.

Take a look at https://rustwasm.github.io/wasm-bindgen/web-sys/index.html left panel, towards the bottom, and you will see that it's jumps from section 3, to 5, to 7 to 9 - which I am assuming is NOT what you wanted.
2019-01-01 17:38:45 +01:00
Tom Houlé
1f2adb7422
Fix tiny comment formatting issue in docs 2018-12-30 10:14:07 +01:00
Daniel Barney
3858fe773f
fixing a small spelling error
I realize that this is just fixing spelling on some comments and a fairly minor correction at that.
2018-12-29 22:26:51 -07:00
Alex Crichton
465bb38d22
Merge pull request #1124 from KSXGitHub/patch-1
Fix typo
2018-12-22 10:04:09 -06:00
Khải
af06c6fc3d
Fix typo 2018-12-22 16:15:12 +07:00
Alex Crichton
9db0addb63 Update wat syntax with upstream changes 2018-12-19 15:49:05 -08:00
Alex Crichton
47d0381907 Update xargo to fix raytracer build 2018-12-19 15:31:36 -08:00
Alex Crichton
fcee465692 Add a comment about memory management 2018-12-19 12:00:42 -08:00
Alex Crichton
46464b6abf
Merge pull request #1117 from alexcrichton/structural
Flag all web-sys methods as `structural`
2018-12-17 19:43:38 -06:00
Alex Crichton
9237d4cf2c Flag all web-sys methods as structural
This was an intended change from #1019, but we forgot to apply it!

Closes #1095
2018-12-17 10:43:48 -08:00
Alex Crichton
3e05489fd5
Merge pull request #1113 from alexcrichton/uncomment
Uncomment a webidl method we now support
2018-12-14 17:10:09 -06:00
Alex Crichton
ae49dd8697 Uncomment a webidl method we now support
First commented out in #568 when we didn't support this we now do!

Closes #1111
2018-12-14 13:25:35 -08:00
Alex Crichton
4054ce8a2c More fixes for iterating example 2018-12-13 10:40:07 -08:00
Alex Crichton
0617398bac
Merge pull request #1110 from jrvidal/outdated-links
Fixes outdated links
2018-12-13 08:45:39 -06:00
Roberto Vidal
08680276ae Fixes outdated links 2018-12-13 15:25:15 +01:00
Alex Crichton
53d6e00b70 Fix compilation of example in docs
Stray `match` keyword!

Closes #1109
2018-12-12 08:20:35 -08:00