Skip to content

EMSCRIPTEN_FETCH_REPLACE needed for loads to memory? #8183

@kripken

Description

@kripken

The testcase here:

https://github.com/emscripten-core/emscripten/compare/fetch-wasm-pthread-async?expand=1

passes as is, but if EMSCRIPTEN_FETCH_REPLACE is removed then it fails. That seems odd since the docs say

// If the file already exists in IndexedDB, the old file will be deleted and a new download is started.

But the test does not do anything with IndexedDB, it just fetches to memory. Are the docs out of date, or does REPLACE mean something here?

cc @juj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions