-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Description
If the fetch() fails (no network, 404, whatever) here
Lines 607 to 608 in 7ed425e
var response = fetch(binaryFile, {{{ makeModuleReceiveExpr('fetchSettings', "{ credentials: 'same-origin' }") }}}); | |
var instantiationResult = await WebAssembly.instantiateStreaming(response, imports); |
it will be retried, regardless of why it failed here
Line 619 in 7ed425e
return instantiateArrayBuffer(binaryFile, imports); |
var response = await fetch(url, {{{ makeModuleReceiveExpr('fetchSettings', "{ credentials: 'same-origin' }") }}}); |
The retry logic shouldn't retry the network call, because the end result is that if you pass a bad URL or serve a broken Wasm file it gets requested twice, just to make sure.


(See also tree-sitter/tree-sitter#4775 )
Metadata
Metadata
Assignees
Labels
No labels