-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
waitAsync
signature to latest spec (#2362)
* Update `waitAsync` signature to latest spec Looks like Chrome implements this now and the spec has also changed since this was first implemented. Relatively easy to update the implementation though! Closes #2361 * Update UI tests for new stable Rust
- Loading branch information
1 parent
eb0ff9b
commit e0ffa8f
Showing
6 changed files
with
100 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
error[E0277]: the trait bound `std::result::Result<(), ()>: wasm_bindgen::__rt::IntoJsResult` is not satisfied | ||
error[E0277]: the trait bound `std::result::Result<(), ()>: IntoJsResult` is not satisfied | ||
--> $DIR/async-errors.rs:30:1 | ||
| | ||
30 | #[wasm_bindgen] | ||
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), ()>` | ||
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `std::result::Result<(), ()>` | ||
| | ||
= help: the following implementations were found: | ||
<std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult> | ||
<std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult> | ||
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result` | ||
<std::result::Result<(), E> as IntoJsResult> | ||
<std::result::Result<T, E> as IntoJsResult> | ||
= note: required by `into_js_result` | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `std::result::Result<(), BadType>: wasm_bindgen::__rt::IntoJsResult` is not satisfied | ||
error[E0277]: the trait bound `std::result::Result<(), BadType>: IntoJsResult` is not satisfied | ||
--> $DIR/async-errors.rs:32:1 | ||
| | ||
32 | #[wasm_bindgen] | ||
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), BadType>` | ||
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `std::result::Result<(), BadType>` | ||
| | ||
= help: the following implementations were found: | ||
<std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult> | ||
<std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult> | ||
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result` | ||
<std::result::Result<(), E> as IntoJsResult> | ||
<std::result::Result<T, E> as IntoJsResult> | ||
= note: required by `into_js_result` | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<BadType>` is not satisfied | ||
error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not satisfied | ||
--> $DIR/async-errors.rs:34:1 | ||
| | ||
34 | #[wasm_bindgen] | ||
| ^^^^^^^^^^^^^^^ the trait `std::convert::From<BadType>` is not implemented for `wasm_bindgen::JsValue` | ||
| ^^^^^^^^^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue` | ||
| | ||
= help: the following implementations were found: | ||
<wasm_bindgen::JsValue as std::convert::From<&'a T>> | ||
<wasm_bindgen::JsValue as std::convert::From<&'a std::string::String>> | ||
<wasm_bindgen::JsValue as std::convert::From<&'a str>> | ||
<wasm_bindgen::JsValue as std::convert::From<MyType>> | ||
<wasm_bindgen::JsValue as From<&'a String>> | ||
<wasm_bindgen::JsValue as From<&'a T>> | ||
<wasm_bindgen::JsValue as From<&'a str>> | ||
<wasm_bindgen::JsValue as From<MyType>> | ||
and 62 others | ||
= note: required because of the requirements on the impl of `std::convert::Into<wasm_bindgen::JsValue>` for `BadType` | ||
= note: required because of the requirements on the impl of `wasm_bindgen::__rt::IntoJsResult` for `BadType` | ||
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result` | ||
= note: required because of the requirements on the impl of `Into<wasm_bindgen::JsValue>` for `BadType` | ||
= note: required because of the requirements on the impl of `IntoJsResult` for `BadType` | ||
= note: required by `into_js_result` | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValue>: wasm_bindgen::__rt::IntoJsResult` is not satisfied | ||
error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied | ||
--> $DIR/async-errors.rs:36:1 | ||
| | ||
36 | #[wasm_bindgen] | ||
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<BadType, wasm_bindgen::JsValue>` | ||
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `std::result::Result<BadType, wasm_bindgen::JsValue>` | ||
| | ||
= help: the following implementations were found: | ||
<std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult> | ||
<std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult> | ||
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result` | ||
<std::result::Result<(), E> as IntoJsResult> | ||
<std::result::Result<T, E> as IntoJsResult> | ||
= note: required by `into_js_result` | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::convert::FromWasmAbi` is not satisfied | ||
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: FromWasmAbi` is not satisfied | ||
--> $DIR/missing-catch.rs:6:9 | ||
| | ||
6 | pub fn foo() -> Result<JsValue, JsValue>; | ||
| ^^^ the trait `wasm_bindgen::convert::FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>` | ||
| ^^^ the trait `FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied | ||
error[E0277]: the trait bound `String: std::marker::Copy` is not satisfied | ||
--> $DIR/pub-not-copy.rs:5:16 | ||
| | ||
3 | #[wasm_bindgen] | ||
| --------------- required by this bound in `__wbg_get_a_field::assert_copy` | ||
| --------------- required by this bound in `assert_copy` | ||
4 | pub struct A { | ||
5 | pub field: String, | ||
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String` | ||
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `String` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error[E0277]: the trait bound `A: wasm_bindgen::convert::IntoWasmAbi` is not satisfied | ||
error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied | ||
--> $DIR/traits-not-implemented.rs:8:12 | ||
| | ||
8 | pub fn foo(a: A); | ||
| ^^^ the trait `wasm_bindgen::convert::IntoWasmAbi` is not implemented for `A` | ||
| ^^^ the trait `IntoWasmAbi` is not implemented for `A` |