fix stdweb

This commit is contained in:
Артём Павлов [Artyom Pavlov]
2019-03-22 22:27:50 +03:00
parent 9e844d5ee3
commit 5e23e13a67
2 changed files with 5 additions and 3 deletions
+4
View File
@@ -122,6 +122,10 @@ extern crate log;
#[allow(unused)]
macro_rules! error { ($($x:tt)*) => () }
// temp fix for stdweb
#[cfg(target_arch = "wasm32")]
extern crate std;
#[cfg(any(
target_os = "android",
target_os = "netbsd",
+1 -3
View File
@@ -7,14 +7,12 @@
// except according to those terms.
//! Implementation for WASM via stdweb
extern crate std;
use core::cell::RefCell;
use core::mem;
use core::num::NonZeroU32;
use std::thread_local;
use stdweb::js;
use stdweb::{js, _js_impl};
use stdweb::unstable::TryInto;
use stdweb::web::error::Error as WebError;