Commit Graph

2582 Commits

Author SHA1 Message Date
Alex Crichton
952d9e06f3 Attempt to really fix benchmarks deploy 2019-05-06 11:13:35 -07:00
Alex Crichton
a85335dee9
Merge pull request #1507 from Pauan/futures-0.3
Adding in Futures 0.3 support to wasm-bindgen-futures
2019-05-06 10:23:30 -05:00
Pauan
c00262f210 Fixing some nits 2019-05-04 09:28:54 +02:00
Pauan
6c58afda01 Addressing feedback 2019-05-04 09:17:29 +02:00
Alex Crichton
d382ad72a3 Try to debug missing files... 2019-05-03 15:11:50 -07:00
Alex Crichton
9d33dd8717 Remove unused statements in web-sys build script 2019-05-03 14:59:35 -07:00
Alex Crichton
d6a6fdfcc7 Don't assert rustfmt succeeds
Not all environments have it so only run it and hope it succeeds.
2019-05-03 14:59:01 -07:00
Alex Crichton
7ef1e35a85 Try to fix publication of benchmarks 2019-05-03 14:29:10 -07:00
Alex Crichton
ec17ffe6ab
Merge pull request #1512 from alexcrichton/benchmarks
Add a page of microbenchmarks for wasm-bindgen
2019-05-03 15:59:31 -05:00
Alex Crichton
e4fd0fccb5 Add a page of microbenchmarks for wasm-bindgen
This commit starts to add a page of microbenchmarks for wasm-bindgen
which we can hopefully track and compare over time. Right now it's
primarily focused on data collection, making it easy to collect data
across a number of benchmarks for comparison. It doesn't currently do
much in the way of actually comparing the results for you (aka drawing
pretty graphs), so let's left for a future step.

It's hoped though that we can use this to track performance improvements
as well as ensuring that they work over time!
2019-05-03 12:30:11 -07:00
Alex Crichton
a7b85362ce
Merge pull request #1506 from alexcrichton/fix-same-name
Fix importing and exporting the same name
2019-05-03 11:29:44 -05:00
Alex Crichton
46f29db534
Merge pull request #1511 from alexcrichton/update-walrus
Update `walrus` dependency
2019-05-03 11:20:45 -05:00
Alex Crichton
3d43d6e5e8 Fix importing and exporting the same name
Run exports through the same identifier generation as imports to ensure
that everything gets a unique identifier and then just make sure all the
appropriate wires are hooked up when dealing with exports and imports.

Closes #1496
2019-05-03 07:15:20 -07:00
Alex Crichton
5a017c1e22 Update walrus dependency 2019-05-03 07:12:28 -07:00
RSSchermer
15e5162275 Add bufferData and clearBuffer to immutable slice whitelist 2019-05-02 18:19:31 +02:00
Pauan
69d7dc24b1 Adding in Futures 0.3 support 2019-05-02 13:48:44 +02:00
Alex Crichton
358ee18ab2
Merge pull request #1466 from fitzgen/log-stacks
Log stacks of imported JS functions that throw but aren't marked `catch`
2019-05-01 16:51:50 -05:00
Alex Crichton
a13eb10763
Merge pull request #1503 from alexcrichton/fix-web-imports
Fix direct imports in `--target web`
2019-05-01 15:56:40 -05:00
Alex Crichton
22eb34d9ab Fix direct imports in --target web
Currently the import object constructed for the `--target web` output
only ever includes the current module as an one of the modules included.
With `wasm-bindgen`'s optimization to import directly from modules,
however, it's possible to have more modules imported from in the
generated wasm file. This commit ensures that the imports are hooked up
in the `--target web` es6 emulation mode, ensuring there aren't
extraneous errors about import objects.
2019-05-01 13:53:59 -07:00
Alex Crichton
8174973c81
Merge pull request #1504 from alexcrichton/fix-drop-ref-showing-up
Fix `__wbindgen_object_drop_ref` unnecessary bindings
2019-05-01 15:52:50 -05:00
Alex Crichton
c96e3ce097 Fix __wbindgen_object_drop_ref unnecessary bindings
This commit fixes an issue where bindings for
`__wbindgen_object_drop_ref` are generated even if the function isn't
actually used by the final wasm file. This is currently due to the fact
that we run gc passes pretty late in wasm-bindgen and one of the
intrinsics that ended up getting gc'd referenced the
`__wbindgen_object_drop_ref` intrinsic function.

The fix here is somewhat naive by just updating the intrinsic to not
actually use `__wbindgen_object_drop_ref`. This may not be a long-term
solution but it should be good enough for now at least.
2019-05-01 12:13:12 -07:00
Alex Crichton
c127ef7691
Merge pull request #1502 from xtuc/patch-1
Update webpack.config.js
2019-05-01 10:46:05 -05:00
Sven Sauleau
98de4d7098
Update webpack.config.js 2019-05-01 17:43:50 +02:00
Alex Crichton
187a289ec8
Merge pull request #1499 from RReverser/patch-2
Fix CHANGELOG for 0.2.43
2019-05-01 08:15:29 -05:00
Ingvar Stepanyan
c6428e2234
Fix CHANGELOG for 0.2.43
"Bindings for some variadic functions ..." line referenced irrelevant PRs.

Moved them to correct places and updated the line with relevant PR link instead.
2019-05-01 01:19:05 +01:00
Alex Crichton
578d59ebc0
Merge pull request #1440 from c410-f3r/getters
Getters/Setters for fields
2019-04-30 12:07:34 -05:00
Alex Crichton
3031c15bf6 Rewrite docs for getters/setters 2019-04-30 10:06:38 -07:00
Alex Crichton
c70ed36be4 Add some tests which do computation in getters/setters 2019-04-30 10:02:11 -07:00
Caio
470eea9fb0 Getters/Setters for fields 2019-04-30 10:26:03 -03:00
Alex Crichton
402e72ed39
Merge pull request #1495 from alexcrichton/bump
Bump to 0.2.43
2019-04-29 11:21:21 -05:00
Alex Crichton
f2429be07f Bump to 0.2.43 2019-04-29 08:28:41 -07:00
Alex Crichton
77d2c2856e Don't rustfmt web-sys bindings
File is then too large to upload to GitHub!

Closes #1482
2019-04-29 08:20:01 -07:00
Alex Crichton
103da22692
Merge pull request #1494 from limira/patch-1
update 'host bindings' -> 'web idl bindings'
2019-04-29 09:27:30 -05:00
Alex Crichton
60bb68649b
Merge pull request #1490 from RReverser/deprecate-custom-try-from
Recommend to use dyn_ref on funcs and strings
2019-04-29 09:08:00 -05:00
Caio
0c4cdefd07 Rustfmt 2019-04-29 09:45:23 -03:00
limira
9c7faefed1
update 'host bindings' -> 'web idl bindings' 2019-04-28 13:58:22 +07:00
Alex Crichton
36c0a1347d
Merge pull request #1492 from RReverser/function-new-with-args
Add bindings for `new Function(args, body)`
2019-04-26 12:05:46 -05:00
Alex Crichton
4865b08513
Merge pull request #1491 from RReverser/more-variadic
Add missing variadic bindings for string methods
2019-04-26 12:04:36 -05:00
Ingvar Stepanyan
814f576b1d Add bindings for new Function(args, body)
We don't support variadic args in front, but, luckily for us, `new Function` accepts comma-separated args as a single string as well (see updated JSON test for an example).
2019-04-26 17:42:23 +01:00
Ingvar Stepanyan
85eea18658 Adds missing variadic bindings for string methods
- `JsString::from_code_point` - allows to create JS strings using slice of codes in WASM memory.
 - `JsString::from_char_code` - same as above, but also uses updated signature with `u16` instead of `u32` (partially helps with #1460 at least for the new binding).
2019-04-26 16:57:34 +01:00
Ingvar Stepanyan
ccc99cd047 Recommend to use dyn_ref on funcs and strings
Now that functions and strings work properly with custom typechecks, these custom methods seem obsolete, so I'd recommend to use standard dyn_ref instead.
2019-04-26 15:50:08 +01:00
Alex Crichton
26f9d86f62
Merge pull request #1487 from ibaryshnikov/shared_array_buffer_tests
Added tests for SharedArrayBuffer
2019-04-26 09:38:16 -05:00
Alex Crichton
cd7aa717c5
Merge pull request #1467 from RReverser/tuple-structs
Generate bindings for indexed struct properties
2019-04-26 09:21:36 -05:00
Alex Crichton
38fcfc3125
Merge pull request #1456 from bakkot/object-from-entries
js-sys: add Object.fromEntries
2019-04-26 09:10:53 -05:00
Kevin Gibbons
70480ad29d fix test 2019-04-25 21:21:17 -07:00
Kevin Gibbons
a32d2553fc js-sys: add Object.fromEntries 2019-04-25 20:52:29 -07:00
Alex Crichton
7f4f9ce136
Merge pull request #1486 from alexcrichton/fix-raytrace
Fix raytrace example by using an older nightly
2019-04-25 22:30:03 -05:00
Alex Crichton
26df24ae6a
Merge pull request #1484 from alexcrichton/new-node
Upgrade version of node.js used on Azure
2019-04-25 22:14:31 -05:00
ibaryshnikov
af22a26880 added tests for SharedArrayBuffer 2019-04-26 10:59:06 +08:00
Alex Crichton
7e512ba187
Merge pull request #1463 from ibaryshnikov/atomics-support
added Atomics and SharedArrayBuffer
2019-04-25 21:48:55 -05:00