Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-08 20:12:16 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/crates/js-sys/tests/wasm/WebAssembly.rs

10 lines
214 B
Rust
Raw Normal View History

Port `WebAssembly` tests to `wasm`
2018-07-20 17:09:50 -07:00
use wasm_bindgen_test::*;
use js_sys::*;
#[wasm_bindgen_test]
fn validate() {
Js sys once over (#550) * js-sys: Return `f64` instead of `Number` * js-sys: remove trailing whitespace * js-sys: Ensure that all imported types derive Clone and Debug * js-sys: Imported functions should always take JS object arguments by-ref
2018-07-25 14:33:44 -07:00
assert!(!WebAssembly::validate(&ArrayBuffer::new(42).into()).unwrap());
Port `WebAssembly` tests to `wasm`
2018-07-20 17:09:50 -07:00
Js sys once over (#550) * js-sys: Return `f64` instead of `Number` * js-sys: remove trailing whitespace * js-sys: Ensure that all imported types derive Clone and Debug * js-sys: Imported functions should always take JS object arguments by-ref
2018-07-25 14:33:44 -07:00
assert!(WebAssembly::validate(&2.into()).is_err());
Port `WebAssembly` tests to `wasm`
2018-07-20 17:09:50 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 692ms Template: 55ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API