Which pg_dump formats open?
Plain (.sql), gzipped plain (.sql.gz) and tar (-Ft). Custom format (-Fc) does not: only pg_restore reads that archive and it has no WebAssembly build, so convert it once with pg_restore -f dump.sql yourfile.dump and open the result.