Commit Graph

991 Commits

Author SHA1 Message Date
R. Andrew Ohana
2d50d5209b Backend refactor (#411)
* remove BindgenAttrs from other backend::ast structs

This is primarily a tool for use with the macro crate. Most of
these attributes were ignored in the actual codegen, but a few
were still being used. This is confusing when trying to add
other sources for codegen (such as webidl and typescript).

* move parsing logic to macro crate

This makes the backend crate solely concerned with having an ast
for which we can generate code.
2018-07-07 12:20:31 -05:00
T. Nagasawa
056b45aeed bindings for Date.parse and Date.getXXX (#414)
* binding for Date.prototype.getHours()

* binding for Date.prototype.getMilliseconds()

* binding for Date.prototype.getMinutes()

* binding for Date.prototype.getMonth()

* binding for Date.prototype.getSeconds()

* binding for Date.prototype.getTime()

* binding for Date.parse()
2018-07-07 12:09:46 -05:00
limira
b790856c6e Add [hello-online] (#413) 2018-07-07 11:23:01 -05:00
Matias Insaurralde
8352b4610f
Add bindings for Intl.getCanonicalLocales 2018-07-07 08:00:22 -04:00
Alex Crichton
0e2e826182 Hide the __wbindgen_if_not_std macro from docs 2018-07-06 20:04:49 -07:00
Alex Crichton
ef807a8068 Tweak some docs and fixup some symbol tests 2018-07-06 20:00:53 -07:00
dependabot[bot]
fce0bbba7f
Merge pull request #406 from rustwasm/dependabot/npm_and_yarn/webpack-cli-3.0.8 2018-07-07 01:02:06 +00:00
dependabot[bot]
fcb3085485
Bump webpack-cli from 2.1.5 to 3.0.8
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 2.1.5 to 3.0.8.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v2.1.5...v3.0.8)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 23:45:53 +00:00
dependabot[bot]
e0ed0a36a1
Merge pull request #408 from rustwasm/dependabot/npm_and_yarn/webpack-4.15.1 2018-07-06 23:44:22 +00:00
dependabot[bot]
11b58f0c03
Bump webpack from 4.12.0 to 4.15.1
Bumps [webpack](https://github.com/webpack/webpack) from 4.12.0 to 4.15.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.12.0...v4.15.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 22:23:31 +00:00
dependabot[bot]
d1f22d3101
Merge pull request #407 from rustwasm/dependabot/npm_and_yarn/ts-loader-4.4.2 2018-07-06 22:22:15 +00:00
dependabot[bot]
8bf53aae5d
Merge pull request #405 from rustwasm/dependabot/npm_and_yarn/@types/node-10.5.2 2018-07-06 21:44:39 +00:00
dependabot[bot]
31252a23c8
Bump ts-loader from 4.4.1 to 4.4.2
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 4.4.1 to 4.4.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v4.4.1...v4.4.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 20:33:01 +00:00
dependabot[bot]
5da5bddadf
Bump @types/node from 9.6.22 to 10.5.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) from 9.6.22 to 10.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 20:32:16 +00:00
Alex Crichton
45d25ebdf0 Only check the master branch 2018-07-06 13:30:28 -07:00
dependabot[bot]
37bb15baf6
Merge pull request #404 from rustwasm/dependabot/cargo/docopt-1.0 2018-07-06 19:43:25 +00:00
dependabot[bot]
9a7e780904
Merge pull request #403 from rustwasm/dependabot/cargo/wasmi-0.3 2018-07-06 19:19:54 +00:00
dependabot[bot]
ded378b92f
Update docopt requirement to 1.0
Updates the requirements on [docopt](https://github.com/docopt/docopt.rs) to permit the latest version.
- [Release notes](https://github.com/docopt/docopt.rs/releases)
- [Commits](https://github.com/docopt/docopt.rs/commits/1.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 16:55:11 +00:00
dependabot[bot]
178375a51b
Update wasmi requirement to 0.3
Updates the requirements on [wasmi](https://github.com/paritytech/wasmi) to permit the latest version.
- [Release notes](https://github.com/paritytech/wasmi/releases)
- [Commits](https://github.com/paritytech/wasmi/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 16:54:52 +00:00
Jannik Keye
175319c1e0 doc: add reference document (#242) (#383)
* doc: add reference document

* fix: link reference doc in SUMMARY.md

* fix(reference.md): collapse related rows
2018-07-06 11:25:10 -05:00
Nick Fitzgerald
a526be9baf
Merge pull request #401 from rail44/support-symbol
Add support for static props of Symbol
2018-07-06 09:15:36 -07:00
limira
04e29db588 Correct link to WebIDL issue (#402) 2018-07-06 11:09:48 -05:00
Marcin Baraniecki
83a7d5bfdc
Merge pull request #399 from alexcrichton/jsvalue-debug
Implement `Debug for JsValue`
2018-07-06 13:36:17 +02:00
Marcin Baraniecki
c9f4a266b0
Merge pull request #386 from jannikkeye/bindings-reflect
Reflect.xx bindings
2018-07-06 13:34:59 +02:00
Marcin Baraniecki
f7dc819289
Merge pull request #387 from Hywan/webassembly
feat(js) Implement the `WebAssembly.validate` binding.
2018-07-06 13:33:37 +02:00
Ivan Enderlin
b4bf8fbfba
test(js) New WebAssembly.validate_with_invalid_input test case. 2018-07-06 10:41:51 +02:00
Ivan Enderlin
d1955c91b7
test(js) Don't unwrap to false. 2018-07-06 10:41:32 +02:00
Satoshi Amemiya
6e4948d983 Add support for static props of Symbol 2018-07-06 17:07:43 +09:00
Jannik Keye
2022b44416 fix: convert tests to plain js 2018-07-06 09:41:08 +02:00
Jannik Keye
99d66ad6ed merge master 2018-07-06 09:31:58 +02:00
Sendil Kumar N
a65b6c7003
Merge pull request #397 from ZerothLaw/Issue275/ArrayFind
Issue #275: Added Array.prototype.find binding
2018-07-06 09:22:46 +02:00
Sendil Kumar N
142d7377e2
Merge pull request #400 from alexcrichton/derive-import
Forward attributes on `type` declaration to definition
2018-07-06 09:21:01 +02:00
Sendil Kumar N
15b346994d
Merge pull request #373 from rail44/static-property
Add support getter and setter for static props
2018-07-06 09:06:42 +02:00
Satoshi Amemiya
1bcfcaf1ed TypeScript is no longer enabled 2018-07-06 15:41:07 +09:00
Satoshi Amemiya
bd068207a1 Fix test of Symbol.hasInstance 2018-07-06 14:57:22 +09:00
Satoshi Amemiya
2518048f25 Add support Symbol.hasInstance as sample of static prop getter 2018-07-06 14:57:17 +09:00
Satoshi Amemiya
e6b2a0d98c Add support getter and setter for static props 2018-07-06 14:57:17 +09:00
Alex Crichton
f4b49226b6 Fix webidl crate 2018-07-05 21:25:40 -07:00
Alex Crichton
5a776c16b2 Forward attributes on type declaration to definition
This'll allow things like `#[derive(Clone)]` or `#[derive(Debug)]` to control
traits for these types.
2018-07-05 20:28:52 -07:00
Alex Crichton
d930a5a97a Implement Debug for JsValue 2018-07-05 20:24:28 -07:00
Tyler Laing
baf76431bc Issue #275: Adding Array.prototype.find. Fixing newline. 2018-07-05 16:02:51 -07:00
Tyler Laing
d29b17f158 Issue #275: Added Array.prototype.find binding 2018-07-05 15:05:23 -07:00
Nick Fitzgerald
bc2eab1434
Merge pull request #396 from fitzgen/pull-project-testing-out-into-its-own-crate
tests: Pull the `project()` builder out into its own crate
2018-07-05 15:01:21 -07:00
Nick Fitzgerald
e5172902a8
Merge pull request #394 from fitzgen/use-scalars-not-opaque-number-objects
js: Return scalar types instead of `Number` objects
2018-07-05 14:33:00 -07:00
Nick Fitzgerald
549e5a9be9 tests: Pull the project() builder out into its own crate
The WebIDL-based -sys crate will also use this, but I want its tests to be a
separate suite that we can run separately and in parallel in CI. Therefore, this
testing infrastructure code needs to be share-able between them :)
2018-07-05 14:27:26 -07:00
Nick Fitzgerald
7ff90f1490 js: Return scalar types instead of Number objects
99% of the time we don't want to deal with opaque handles to `Number`
objects.
2018-07-05 13:02:40 -07:00
Sendil Kumar N
52a00d5e16
Merge pull request #392 from brisad/add-more-bindings
Add bindings in Date and Number
2018-07-05 19:51:58 +02:00
Michael Hoffmann
9f3722bbd9 Change assert to assert.ok to fix test 2018-07-05 17:34:45 +02:00
Michael Hoffmann
260183a522 Add binding for Number.isInteger 2018-07-05 17:09:59 +02:00
Michael Hoffmann
9d3b26341e Add binding for Date.prototype.getDate 2018-07-05 17:09:59 +02:00