Fix detached ArrayBuffer errors#153
Fix detached ArrayBuffer errors#153yonihemi merged 1 commit intoswiftwasm:mainswiftwasm/JavaScriptKit:mainfrom yonihemi:fix/detached_bufferyonihemi/JavaScriptKit:fix/detached_bufferCopy head branch name to clipboard
Conversation
|
Good catch! As far as I understand, |
|
Could you add a test case to kill this bug by using |
In my case there is no explicit call to |
|
hey hi hope your all doing fine seems I got the same error JavascriptKit 0.17.0
|
|
Can you open a new issue, and (if you’re able to) provide a code sample that reproduces the error? |
|
sure give a min, thank you. |
Fixes a regression caused by #150:
Unhandled Promise Rejection: TypeError: Underlying ArrayBuffer has been detached from the view(Safari)TypeError: Cannot perform %TypedArray%.prototype.set on a detached ArrayBuffer(Chrome)It's troubling our unit test don't catch this but with my limited knowledge of JS memory management I don't know how to reliably recreate it.