From 5701cea51ea6c7d7dc274266b764a254380832ce Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 13 Dec 2023 12:08:54 +0000 Subject: [PATCH] Configure `Instant` wasm polyfill to use monotonic time With the `inaccurate` feature, this polyfill uses `Date.now()` to emulate `Instant`, which is not monotonic, causing problems like https://github.com/element-hq/element-web/issues/26416. --- crates/matrix-sdk-common/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-common/Cargo.toml b/crates/matrix-sdk-common/Cargo.toml index dcab35295..cb11faa04 100644 --- a/crates/matrix-sdk-common/Cargo.toml +++ b/crates/matrix-sdk-common/Cargo.toml @@ -16,7 +16,7 @@ default-target = "x86_64-unknown-linux-gnu" targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"] [features] -js = ["instant/wasm-bindgen", "instant/inaccurate", "wasm-bindgen-futures"] +js = ["instant/wasm-bindgen", "wasm-bindgen-futures"] [dependencies] async-trait = { workspace = true }