Skip to content

Commit 48299cd

Browse files
committed
Add faulthandler to wasm32
1 parent 2335ca0 commit 48299cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ mod syslog;
4343
mod unicodedata;
4444
mod zlib;
4545

46-
#[cfg(not(target_arch = "wasm32"))]
4746
mod faulthandler;
4847
#[cfg(any(unix, target_os = "wasi"))]
4948
mod fcntl;
@@ -109,6 +108,7 @@ pub fn get_module_inits() -> impl Iterator<Item = (Cow<'static, str>, StdlibInit
109108
"_contextvars" => contextvars::make_module,
110109
"_csv" => csv::make_module,
111110
"_dis" => dis::make_module,
111+
"faulthandler" => faulthandler::make_module,
112112
"gc" => gc::make_module,
113113
"_hashlib" => hashlib::make_module,
114114
"_sha1" => sha1::make_module,
@@ -140,7 +140,6 @@ pub fn get_module_inits() -> impl Iterator<Item = (Cow<'static, str>, StdlibInit
140140
{
141141
"_multiprocessing" => multiprocessing::make_module,
142142
"_socket" => socket::make_module,
143-
"faulthandler" => faulthandler::make_module,
144143
}
145144
#[cfg(not(any(target_os = "android", target_arch = "wasm32")))]
146145
{

0 commit comments

Comments
 (0)