• Install a global, idempotent TextDecoder.prototype.decode shim that copies a view out of a resizable/growable buffer before decoding. This covers decodes we do not own — chiefly Emscripten's UTF8ToString and embind std::string returns in the wasm glue, which read straight from the resizable wasm heap and would otherwise throw mid-extraction and drop geometry. A no-op where TextDecoder is absent or the buffer is plain.

    Returns void