Alex Crichton
2cbb8b8a69
Improve diagnostics with missing trait implementations
...
Rejigger a few spans, work around an odd rustc issue, and hopefully
produce higher quality error messages!
Closes #1528
2019-05-20 10:49:36 -07:00
Alex Crichton
a02d210d5c
Catch more errors on non-wasm32 platforms
...
This commit tweaks the codegen for imported functions and such (anything
that relies on some imported intrinsic or function filled in by the CLI)
to share as much code as possible on non-wasm32 platforms. This should
help us catch more errors before compiling to wasm and also just make it
easier to write UI tests!
For example a UI test previously couldn't be written for #1528 but now
it can be, and one is include (although the error message is quite bad).
2019-05-20 10:16:25 -07:00
Alex Crichton
f23b867179
Merge pull request #1544 from ibaryshnikov/master
...
expose forget to wasm
2019-05-20 11:33:10 -05:00
Alex Crichton
a68cdc594d
Add a test that Callback::forget
works
2019-05-20 09:32:37 -07:00
Alex Crichton
4049803c39
Merge pull request #1548 from lzubiaur/fix-heap-closure-example
...
Fix closure example compilation errors
2019-05-20 09:23:06 -05:00
lzubiaur
c043a952a2
Fix closure example compilation errors
2019-05-20 16:40:22 +09:00
ibaryshnikov
805738608d
expose forget to wasm
2019-05-19 14:42:53 +03:00
Nick Fitzgerald
0cbdea5fa9
Merge pull request #1542 from fitzgen/update-walrus
...
Update dependencies and use new walrus custom sections APIs
2019-05-17 15:21:35 -07:00
Nick Fitzgerald
d422436487
Update dependencies and use new walrus custom sections APIs
2019-05-17 14:58:50 -07:00
Alex Crichton
fb42e47ba7
Merge pull request #1541 from RReverser/rm-wasm-bindgen-test-unsafe
...
Remove unsafe from #[wasm_bindgen_test] output
2019-05-17 10:42:35 -05:00
Ingvar Stepanyan
cce12bfe16
Remove unsafe from #[wasm_bindgen_test] output
...
This is not necessary because references are FFI-safe and compatible with corresponding pointers, so we can just use them directly as an input.
Fixes #1540 .
2019-05-17 15:52:26 +01:00
Alex Crichton
3e6d89f1cf
Merge pull request #1539 from dakom/master
...
whitelist uniforms with Int32List
2019-05-17 08:46:14 -05:00
dakom
ae2aba094c
whitelist uniforms with Int32List
2019-05-17 09:59:28 +03:00
Nick Fitzgerald
0d895dde14
Fix version title in the CHANGELOG.md
2019-05-16 13:31:18 -07:00
Alex Crichton
40ec810b86
Merge pull request #1537 from lqd/weedle-0.9
...
Update weedle to version 0.9
2019-05-16 12:14:36 -05:00
lqd
ca0008174a
Update weedle to version 0.9
2019-05-16 18:52:25 +02:00
Nick Fitzgerald
d7695f4e78
Merge pull request #1536 from alexcrichton/bump
...
Bump to 0.2.44
2019-05-16 09:29:41 -07:00
Alex Crichton
773c6ff430
Bump to 0.2.44
2019-05-16 07:47:23 -07:00
Alex Crichton
5d97b358a2
Merge pull request #1534 from alexcrichton/trybuild
...
Migrate to `trybuild` from `compiletest`
2019-05-15 16:57:57 -05:00
Alex Crichton
4cc730fc41
Migrate to trybuild
from compiletest
...
This migrates our UI tests to the recently published `trybuild` crate
which should hopefully be a bit more robust than `compiletest` over
time!
2019-05-15 14:47:22 -07:00
Nick Fitzgerald
401c26b73b
Merge pull request #1533 from wayeast/master
...
Enable text area selectionStart and selectionEnd calls.
2019-05-14 15:54:41 -07:00
Huston Bokinsky
e728a7ee9e
Enable text area selectionStart and selectionEnd calls.
2019-05-14 14:58:06 -07:00
Alex Crichton
827810fa1b
Merge pull request #1483 from dbrgn/typescript-optional-args
...
Fix optional arguments in TypeScript
2019-05-14 12:39:35 -05:00
Alex Crichton
fdd6069f7a
Merge pull request #1532 from RReverser/even-faster-strings
...
Hotfix for double encodeInto call
2019-05-14 10:00:36 -05:00
Ingvar Stepanyan
716ed0d891
Hotfix for double encodeInto call
...
This was a regression introduced in the last commit of https://github.com/rustwasm/wasm-bindgen/pull/1470 , which might make Unicode strings 2x slower to pass.
2019-05-14 14:14:34 +01:00
Alex Crichton
b964201831
Merge pull request #1531 from alexcrichton/less-cruft
...
Remove thread_local! weirdness in `anyref.rs`
2019-05-13 11:52:17 -05:00
Nick Fitzgerald
c504c381ca
Merge pull request #1530 from alexcrichton/drop-glue-closures
...
Protect against segfaults calling destroyed closures
2019-05-13 09:43:32 -07:00
Alex Crichton
79dba40e61
Remove thread_local! weirdness in anyref.rs
...
Resolves an old comment long since been fixed, and confirmed that we
still don't generate extra cruft!
Closes #1523
2019-05-13 09:35:15 -07:00
Alex Crichton
f97763023c
Merge pull request #1470 from RReverser/even-faster-strings
...
Speed up passing ASCII-only strings to WASM
2019-05-13 10:13:04 -05:00
Alex Crichton
15defcfd3a
Add a debug assert and more tests
2019-05-13 08:12:32 -07:00
Alex Crichton
542076d658
Protect against segfaults calling destroyed closures
...
This commit updates the drop glue generated for closures to simply
ignore null pointers. The drop glue can be called in erroneous
situations such as when a closure is invoked after it's been destroyed.
In these cases we don't want to segfault and/or corrupt memory but
instead let the normal error message from the invoke glue continue to
get propagated.
Closes #1526
2019-05-13 07:22:33 -07:00
Alex Crichton
098b67d7f0
Merge pull request #1527 from ibaryshnikov/master
...
Removed duplicate script from pipelines
2019-05-13 08:32:02 -05:00
ibaryshnikov
762989e95c
removed duplicate script from pipelines
2019-05-12 19:34:26 +03:00
Ingvar Stepanyan
0c681ee2ba
Fix offset to arg comparison
2019-05-10 15:31:59 +01:00
Ingvar Stepanyan
7418cec613
Reduce reallocation sizes
2019-05-10 14:44:49 +01:00
Ingvar Stepanyan
57b1a57c5e
Speed up passing ASCII-only strings to WASM
...
Some speed up numbers from my string-heavy WASM benchmarks:
- Firefox + encodeInto: +45%
- Chrome + encodeInto: +80%
- Firefox + encode: +29%
- Chrome + encode: +62%
Note that this helps specifically with case of lots of small ASCII strings, in case of large strings there is no measurable difference in either direction.
2019-05-10 14:40:59 +01:00
Nick Fitzgerald
befefe0da6
Merge pull request #1521 from fitzgen/anyref-heap-live-count
...
Utility for counting the number of live JsValues in the wasm-bindgen heap
2019-05-09 16:22:06 -07:00
Nick Fitzgerald
3348ecebdf
rustfmt src/anyref.rs
2019-05-09 15:57:21 -07:00
Nick Fitzgerald
450c9234ad
Add the anyref_heap_live_count
function
...
This is useful for debugging and writing tests that assert various operations do
not leak `JsValue`s.
2019-05-09 15:57:21 -07:00
Alex Crichton
8ef820a54e
Merge pull request #1520 from darthtrevino/bugfix/1517_typings
...
Update init() typings
2019-05-09 12:05:25 -07:00
Chris Trevino
9b5de9f88d
update init test
2019-05-09 11:12:45 -07:00
Chris Trevino
2850cfc78e
update init function export
2019-05-09 11:01:45 -07:00
Danilo Bargen
608a819c0b
fixup! Fix optional arguments in TypeScript
...
Update tests
2019-05-09 18:36:47 +02:00
Danilo Bargen
d9c559f2ca
fixup! Fix optional arguments in TypeScript
...
Apply feedback about omittable and non-omittable arguments. Thanks
@rhysd!
2019-05-09 18:22:47 +02:00
Nick Fitzgerald
f4c5532982
Reorder and organize instrinsic extern declarations
2019-05-09 09:17:13 -07:00
Danilo Bargen
2384af21c1
Fix optional arguments in TypeScript
2019-05-09 18:09:29 +02:00
Alex Crichton
d139228a34
Merge pull request #1508 from RSSchermer/master
...
Add `bufferSubData` and `clearBuffer[fiuv]` to immutable slice whitelist
2019-05-08 07:14:27 -07:00
Alex Crichton
61e2a1271e
Merge pull request #1518 from Delet0r/patch-1
...
corretected unit of UTF-16 from byte to bit
2019-05-08 07:02:15 -07:00
Delet0r
cb691100f1
corretected unit of UTF-16 from byte to bit
2019-05-08 15:03:34 +02:00
Alex Crichton
19c3036f7e
Update benchmarks source code link
2019-05-06 11:57:38 -07:00