Alex Crichton
c6d3011cff
Merge pull request #785 from afdw/master
...
Add initial support for unions in return types, add more fixes for case of identifiers
2018-09-05 09:26:42 -07:00
Anton Danilkin
e5f382eccf
Remove support for non-object unions, add more comments
2018-09-05 18:15:02 +03:00
Nick Fitzgerald
b00153cbb3
Merge pull request #789 from alexcrichton/fix-mdn
...
Fix regression of missing documentation
2018-09-04 16:32:38 -07:00
Alex Crichton
6b0cea73cd
Fix regression of missing documentation
...
I forgot to add MDN docs for #765 to member operations, but this commit adds
them back!
Closes #786
2018-09-04 14:52:56 -07:00
Anton Danilkin
fcd890a70e
Remove dead code
2018-09-04 21:03:23 +03:00
Anton Danilkin
095f86fa51
Use object type whenever possible
2018-09-03 21:37:58 +03:00
Alex Crichton
a22094c023
Merge pull request #787 from bspeice/patch-1
...
[WIP] Remove --wasm2asm flag, use binaryen directly
2018-09-03 11:24:04 -07:00
Bradlee Speice
0965b77af8
Remove --wasm2js flag entirely
2018-09-03 13:56:55 -04:00
Alex Crichton
1a00e94324
Merge pull request #726 from derekdreery/variadic_js_functions
...
Support variadic javascript function parameters
2018-09-03 10:28:58 -07:00
Alex Crichton
e4cad4b979
Merge pull request #781 from alexcrichton/fix-location
...
Handle [Unforgeable] on interfaces
2018-09-03 10:25:20 -07:00
Richard Dodd
5c7e638b8c
Handle variadic no args more gracefully.
2018-09-03 09:50:26 +01:00
Bradlee Speice
c69833f253
Fix some references I missed
2018-09-02 22:32:19 -04:00
bspeice
724eb53d3c
Update wasm2es6js.rs
...
Binaryen renamed the tool to wasm2js instead of wasm2asm - https://github.com/WebAssembly/binaryen/pull/1642
2018-09-02 22:02:15 -04:00
Anton Danilkin
14c2c04ccd
Fix canvas test
2018-09-02 20:51:37 +03:00
Anton Danilkin
75ac7ca64e
Fix nullable union types
2018-09-02 20:37:12 +03:00
Anton Danilkin
ff516d0211
Add initial support for unions in return types, add more fixes for case of identifiers
2018-09-02 15:09:51 +03:00
Richard Dodd
e279987fa4
Merge remote-tracking branch 'upstream/master' into variadic_js_functions
2018-09-01 22:24:27 +01:00
Richard Dodd
7d5d845608
Add docs and remove typecheck from variadic attribute
2018-09-01 13:55:35 +01:00
Alex Crichton
cfb4be8d3c
Handle [Unforgeable] on interfaces
...
In addition to handling it on methods look like it also shows up on interfaces!
Closes #780
2018-08-31 17:38:34 -07:00
Alex Crichton
986f561209
Merge pull request #765 from alexcrichton/fix-some-overloads
...
Change how naming overloaded methods works
2018-08-31 09:49:46 -07:00
Richard Dodd
ce1cb84327
Merge branch 'master' into variadic_js_functions
2018-08-31 10:08:53 +01:00
Richard Dodd
958e557c86
try removing typecheck
2018-08-31 09:59:11 +01:00
Alex Crichton
3204c514ab
Fix typos
2018-08-30 22:31:03 -07:00
Alex Crichton
c9c776b0b4
Review comments
2018-08-30 16:29:51 -07:00
Alex Crichton
14cb2dd4cf
Fix fetch example ... again?
2018-08-30 14:26:22 -07:00
Alex Crichton
0e18188ff9
Merge pull request #774 from fitzgen/add-afdw-to-the-team
...
Add @afdw to the team! \o/
2018-08-30 14:06:51 -07:00
Alex Crichton
76dba8c677
Merge pull request #775 from alexcrichton/better-version
...
Automatically change the schema version on all publishes
2018-08-30 13:48:42 -07:00
Alex Crichton
90fce8c9d4
Fix audio example
2018-08-30 13:45:42 -07:00
Alex Crichton
de6aa6c97e
Automatically change the schema version on all publishes
...
Closes #773
2018-08-30 13:26:07 -07:00
Alex Crichton
12a7558374
Merge pull request #772 from fitzgen/links-in-cargo-toml
...
Add `links` section to `Cargo.toml`
2018-08-30 13:24:29 -07:00
Nick Fitzgerald
81c9bbd1bd
Add links
section to Cargo.toml
...
Because only a single `wasm_bindgen` version can be used in a dependency graph,
pretend we link a native library so that `cargo` will provide better error
messages than the esoteric linker errors we would otherwise trigger.
2018-08-30 13:04:27 -07:00
Nick Fitzgerald
e290c75c32
Add @afdw to the team! \o/
2018-08-30 12:59:34 -07:00
Alex Crichton
e283093997
Fix the console_log
example
2018-08-30 12:55:21 -07:00
Alex Crichton
dd3dba9285
Delete lots of now-unused code
2018-08-30 12:54:54 -07:00
Alex Crichton
923abc7d85
Migrate constructors to new naming scheme
2018-08-30 12:54:54 -07:00
Alex Crichton
5a4a34d4a1
Migrate methods to new naming scheme
...
Allows deletion of `create_basic_method`!
2018-08-30 12:54:54 -07:00
Alex Crichton
15d4338abe
Reimplement name disambiguation on overloading
...
This commit reimplements how we disambiguate function names on overloading.
Previously functions would be first be disambiguated if they had multiple
instances of the same name, and *then* functions would be disambiguated
aftewards by if their arguments expanded to more than one type to generate.
This commit instead collects everything into one list during the first pass.
This one list contains all signatures known for a given name. Later this list is
walked in one pass to generate all methods necessary, expanding names all at
once instead of two steps.
This should improve the naming of methods across multiple functions which also
have optional arguments. Support in this commit is just enough for namespaces,
but following commits will update the strategy for mixins/interfaces.
Additionally only new code was added in this commit which duplicates a lot of
functionality, but subsequent commits will remove the old code that will
eventually no longer be used.
2018-08-30 12:54:54 -07:00
Alex Crichton
0a18ca4490
Minor tweaks to first_pass.rs
...
Nothing much of consequence
2018-08-30 12:54:54 -07:00
Alex Crichton
6cf3b90e63
Deindent a few helper functions in dictionaries
...
No need for it to be an inner function now that it's using methods!
2018-08-30 12:54:54 -07:00
Alex Crichton
4f76a00024
Refactor creation of functions in the backend
...
This commit refactors the lowest-level primitive for creating functions into a
new `create_one_function` function. This doesn't take into account overloading
but is suitable for things like `create_{getter,setter}`. Eventually the
overloading will be implemented in terms of this function.
2018-08-30 12:54:54 -07:00
Alex Crichton
0a38e44f1f
Refactor a method for listing all mixins
...
This'll hopefully be reusable in more than one location!
2018-08-30 12:54:54 -07:00
Alex Crichton
b9dc937d73
Refactor WebIDL code generation
...
This commit refactors WebIDL code generation to walk over the fields of
`FirstPassRecord` instead of walking the AST again. This helps remove
redundancies like checking `is_chrome_only` as well as revisiting partial
interfaces and such. This should make it more clear that the first pass's job is
to walk the AST and collect all relevant information, while the codegen pass is
purely about appending items to a `Program`.
Additionally this refactoring will also soon be used to prepare different data
structures for operation overloadings, avoiding the need to walk those ASTs
twice.
2018-08-30 12:54:54 -07:00
Alex Crichton
d358fa0987
Merge pull request #766 from alexcrichton/remove-uint8-clamped-array
...
webidl: Remove support for Uint8ClampedArray
2018-08-30 12:53:37 -07:00
Alex Crichton
e25feccc11
webidl: Remove support for Uint8ClampedArray
...
Our bindings currently translate this to `&[u8]` which is actually `Uint8Array`.
We'll need to fix #421 before supporting this.
2018-08-30 10:34:50 -07:00
Alex Crichton
df19b63c60
Hack around a broken nightly
2018-08-30 10:33:45 -07:00
Nick Fitzgerald
5319c1c31d
Merge pull request #764 from fitzgen/readme-features
...
README: add features section describing goals/foundations/features of…
2018-08-29 15:23:15 -07:00
Nick Fitzgerald
96573574c1
README: add features section describing goals/foundations/features of wasm-bindgen
2018-08-29 14:24:09 -07:00
Alex Crichton
1565459107
Merge pull request #761 from alexcrichton/more-globals
...
web-sys: Add support for `Global`-scope methods
2018-08-28 18:36:53 -07:00
Alex Crichton
4a9a2af2fc
Merge pull request #762 from alexcrichton/no-nightly
...
Don't enable `nightly` feature of `proc-macro2`
2018-08-28 18:36:42 -07:00
Alex Crichton
0fb31b2bc4
Don't enable nightly
feature of proc-macro2
...
This is no longer needed as of rustc 1.30.0 and the `proc-macro2` crate will now
automatically detect whether it can use spans or not!
2018-08-28 17:24:43 -07:00