We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
globalThis
Crypto
1 parent 055a7c2 commit ec6f289Copy full SHA for ec6f289
src/backends/wasm_js.rs
@@ -69,7 +69,7 @@ extern "C" {
69
// Web Crypto API: Crypto interface (https://www.w3.org/TR/WebCryptoAPI/)
70
type Crypto;
71
// Holds the global `Crypto` object.
72
- #[wasm_bindgen(thread_local_v2, js_name = crypto)]
+ #[wasm_bindgen(thread_local_v2, js_namespace = globalThis, js_name = crypto)]
73
static CRYPTO: Option<Crypto>;
74
// Crypto.getRandomValues()
75
#[cfg(not(target_feature = "atomics"))]
0 commit comments