You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closely related to #4395 - TypedArray::from with slice input sporadically fails: "Cannot perform Construct on a detached ArrayBuffer". It uses TypedArray::view:
# cargo test --target wasm32-unknown-unknown from_succeeds_when_heap_grows
[...]
running 1 test
test TypedArray::from_succeeds_when_heap_grows ... FAIL
failures:
---- TypedArray::from_succeeds_when_heap_grows output ----
error output:
wasm-bindgen: imported JS function that was not marked as `catch` threw an error: Cannot perform Construct on a detached ArrayBuffer
Stack:
TypeError: Cannot perform Construct on a detached ArrayBuffer
at new Int32Array (<anonymous>)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the Bug
Closely related to #4395 -
TypedArray::from
with slice input sporadically fails: "Cannot perform Construct on a detached ArrayBuffer". It usesTypedArray::view
:wasm-bindgen/crates/js-sys/src/lib.rs
Lines 6379 to 6385 in c35cc93
Note that the function is not marked
unsafe
itself.Steps to Reproduce
Add test case to
crates/js-sys/tests/wasm/TypedArray.rs
:Run test:
The text was updated successfully, but these errors were encountered: