mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Generate r#async
method names in web-sys
This is a new keyword in the 2018 edition!
This commit is contained in:
@ -34,9 +34,9 @@ fn test_script_element() {
|
||||
element.set_charset("UTF-8");
|
||||
assert_eq!(element.charset(), "UTF-8", "Should have a charset");
|
||||
|
||||
assert!(element.async(), "Should be async");
|
||||
assert!(element.r#async(), "Should be async");
|
||||
element.set_async(false);
|
||||
assert!(!element.async(), "Shouldn't be a async");
|
||||
assert!(!element.r#async(), "Shouldn't be a async");
|
||||
|
||||
assert!(!element.defer(), "Shouldn't be a defer");
|
||||
element.set_defer(true);
|
||||
|
Reference in New Issue
Block a user