Commit Graph

1050 Commits

Author SHA1 Message Date
R. Andrew Ohana
16cbca74e2 deal with yet another locale/platform issue (#480)
This test fails on my system. As previously decided, until we can
figure out a better solution for this issue, for now we just check
to make sure the output is a non-empty string.
2018-07-14 22:45:49 -05:00
R. Andrew Ohana
0b78b345e1
Merge pull request #476 from jrakow/const-signed-unsiged
split const integers into signed and unsigned
2018-07-14 17:22:15 -07:00
Nick Fitzgerald
c6c5afca00
Merge pull request #475 from dorayakikun/master
Bindings for Aate.prototype.findIndex(), toLocaleString()
2018-07-14 14:02:30 -07:00
Julius Rakow
51b9eb81e8
split const integers into signed and unsigned 2018-07-14 22:48:37 +02:00
Nick Fitzgerald
1e32e91877
Merge pull request #460 from ohanar/webidl_partial_mixins
webidl: add support for partial interfaces and mixins
2018-07-14 13:46:54 -07:00
Alex Crichton
d7a05129ac
Improve documentation around link_this_library (#471)
I've started noticing this in non-LTO builds and initially tried to remove it. I
was unsuccessful but decided to better document my adventures to hopefully
improve future onlookers!
2018-07-14 11:04:47 -05:00
Julius Rakow
e49e02cc88 web-sys: only try to build webidl files (#474) 2018-07-14 11:04:20 -05:00
Tomohide Takao
7a7bc6d22e Bindings for Array.prototype.toLocaleString() 2018-07-14 19:45:22 +09:00
Tomohide Takao
f5035c3841 Bindings for Array.prototype.findIndex() 2018-07-14 19:33:48 +09:00
R. Andrew Ohana
80384d8da9 address my comments for #470 2018-07-13 22:36:51 -07:00
R. Andrew Ohana
0c908bb951 Merge remote-tracking branch 'origin/master' into webidl_partial_mixins 2018-07-13 22:32:16 -07:00
R. Andrew Ohana
d5fee8d5d1 webidl: move first pass logic to new module
I also updated it so that it is modeled in the same
extensible way as the WebidlParse trait.
2018-07-13 21:46:36 -07:00
R. Andrew Ohana
696678b8cc
Merge pull request #470 from jrakow/webidl-const
Support WebIDL constants
2018-07-13 21:12:46 -07:00
Nick Fitzgerald
1c44408d46
Merge pull request #466 from alexcrichton/rm-debug
Remove debug sections by default
2018-07-13 13:38:53 -07:00
Nick Fitzgerald
ee1d4ba9ce
Merge pull request #469 from alexcrichton/less-nightly
Remove usage of the `try_reserve` nightly feature
2018-07-13 11:26:53 -07:00
Nick Fitzgerald
35ad7914db
Merge pull request #468 from alexcrichton/inline
Add `#[inline]` to a number of conversion methods
2018-07-13 11:25:44 -07:00
Julius Rakow
9ebd8bc790
webidl: add float const test 2018-07-13 19:59:59 +02:00
Julius Rakow
473ac6d2ee
webidl: add int const test 2018-07-13 19:59:52 +02:00
Julius Rakow
88f0e84f6c
webidl: add bool const test 2018-07-13 19:59:44 +02:00
Julius Rakow
b23b9cce5b
webidl: add empty constant test file 2018-07-13 19:59:37 +02:00
Julius Rakow
e35129445d
webidl: translate webidl const to backend const 2018-07-13 19:59:27 +02:00
Julius Rakow
862e4c50f6
backend: add const to ast 2018-07-13 19:59:21 +02:00
Julius Rakow
63598721ca
rustfmt 2018-07-13 19:59:13 +02:00
Michael Hoffmann
1007449a17 Enable Headers interface part of fetch API (#463) 2018-07-13 12:11:06 -05:00
Alex Crichton
d0068976f6 Remove usage of the try_reserve nightly feature
Now that `GlobalAlloc` is stable no need to use it!
2018-07-13 10:10:27 -07:00
Alex Crichton
b2b07093d0 Add #[inline] to a number of conversion methods
These are all trivial methods and `#[inline]` will help release and non-LTO
builds (hopefully most builds from now on) to eliminate these function calls and
inline better.
2018-07-13 09:50:44 -07:00
Julius Rakow
2007fe6b9c guide: bump required nodejs version to 10 (#467) 2018-07-13 10:41:54 -05:00
dependabot[bot]
1a8490146d Bump babel-eslint from 8.2.5 to 8.2.6 (#464)
Bumps [babel-eslint](https://github.com/babel/babel-eslint) from 8.2.5 to 8.2.6.
- [Release notes](https://github.com/babel/babel-eslint/releases)
- [Commits](https://github.com/babel/babel-eslint/compare/v8.2.5...v8.2.6)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-13 10:13:19 -05:00
Alex Crichton
133706fc5c Remove debug sections by default
The changes on master Rust insert debug sections now (yay!) but this means that
wasm binaries by default pick up debug sections from the standard library, so
let's remove them by default in wasm-bindgen unless `--debug` is passed
2018-07-13 08:12:12 -07:00
Liigo Zhuang
04ad5bc727 remove unused Stack::pop() (#434) 2018-07-13 09:28:07 -05:00
Nick Fitzgerald
115304f76a
Merge pull request #462 from dorayakikun/master
Bindings for Array.prototype.reduce(Right)
2018-07-12 09:29:24 -07:00
Tomohide Takao
a7deb69e80 Bindings for Array.prototype.reduce(Right) 2018-07-12 23:53:26 +09:00
dependabot[bot]
913b487638 Bump webpack from 4.15.1 to 4.16.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.15.1 to 4.16.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.15.1...v4.16.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-12 08:43:57 +00:00
Marcin Baraniecki
b5f37d3f9d
Merge pull request #436 from liigo/DataView
js::DataView binding
2018-07-12 07:34:22 +02:00
R. Andrew Ohana
5b952f2081 webidl: add support for partial interfaces and mixins
This is a major change to how webidl is processed. This adds
a two phase process, where the first phase records the names of
various types and indexes the mixins (and might do more in the
future). The actual program building happens in the second phase.

As part of this, this also makes it so that interface objects
are passed by reference, rather than by value. The spec isn't
exactly clear on this, but Mozilla's C++ reflection suggestions
seem to indicate that they should be passed by reference (see
https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings).
2018-07-11 19:25:16 -07:00
Liigo Zhuang
e666371ae3 some fix 2018-07-12 10:11:44 +08:00
Liigo Zhuang
823e5a4fd9 fix test 2018-07-12 09:55:34 +08:00
Liigo Zhuang
e568a2369f buffer / byteOffset / byteLenght is property getter 2018-07-12 09:55:34 +08:00
Liigo Zhuang
79f53b567b js::DataView binding 2018-07-12 09:55:33 +08:00
Nick Fitzgerald
7a579be629
Merge pull request #459 from Slowki/github-linguist
Fix Language Statistics
2018-07-11 16:39:23 -07:00
Stephan Wolski
d6a97adb5a
add .gitattributes to mark WebIDL as vendored
Add .gitattributes file to tell Linguist that the WebIDL is vendored.
2018-07-11 18:48:51 -04:00
Nick Fitzgerald
9c7b15ea40
Merge pull request #433 from Slowki/feat/basic-enum-support
WebIDL Enum Support
2018-07-11 14:31:16 -07:00
Stephan Wolski
5520da1ef6
webidl: update enum test to unwrap constructor results
Update the enum test to match the new constructor return values
2018-07-11 16:17:56 -04:00
Stephan Wolski
fac73a2ea4
webidl: make from_js_value visible for enums
Make from_js_value match the visibility of the enum it's associated with
2018-07-11 15:36:41 -04:00
Stephan Wolski
4c7b130872
Merge branch 'master' into feat/basic-enum-support 2018-07-11 15:34:00 -04:00
Nick Fitzgerald
3578a83fe2
Merge pull request #454 from alexcrichton/api
Build documentation for master branch on gh-pages
2018-07-11 11:48:00 -07:00
Nick Fitzgerald
f8949acbe0
Merge pull request #457 from fitzgen/turn-throws-extended-attribute-into-catch
webidl: Turn the `[Throws]` extended attributes into `Result<T, JsValue>`
2018-07-11 11:37:57 -07:00
Nick Fitzgerald
3cdb6ef03a webidl: Turn the [Throws] extended attributes into Result<T, JsValue>
This sets the `catch` flag on the emitted AST when an operation/attribute has
the `[Throws]` extended attribute on it.

Additionally, constructors aren't annotated with `[Throws]` but can still throw
exceptions, so we must conservatively assume *every* constructor can throw an
error.
2018-07-11 11:07:03 -07:00
T. Nagasawa
5ce424e57b bindings for Date.prototype.setUTCXXX() (#456) 2018-07-11 09:27:59 -05:00
Michael Hoffmann
77b86f481e Add helper function to preconfigure project for web-sys (#455) 2018-07-11 09:27:27 -05:00