Fix some tests for wasm32-unknown-emscripten

This commit is contained in:
Nikita Popov 2018-11-08 17:18:21 +01:00
parent 6fb701e874
commit b1a33971ab
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ fn main() {
assert_eq!(BE_U32, b(55u32).to_be());
assert_eq!(LE_U32, b(55u32).to_le());
#[cfg(not(target_arch = "asmjs"))]
#[cfg(not(target_os = "emscripten"))]
{
const BE_U128: u128 = 999999u128.to_be();
const LE_I128: i128 = (-999999i128).to_le();

View File

@ -11,7 +11,7 @@
use core::ops::RangeBounds;
#[cfg(not(target_arch = "wasm32"))]
#[cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))]
#[lang = "eh_personality"]
extern fn eh_personality() {}