When a buffer is mapped for READ, GetConstMappedRange must be used to get a pointer. What happens if you use GetMappedRange? Dawn currently returns nullptr, but I think perhaps it should be invalid (e.g. crash on assertion in debug mode), for debuggability.
https://matrix.to/#/!ZSOHTEPDbwuEgSJwYw:matrix.org/$LHAITjEUC-TmB-YZ1des5TeUBO-FFRIvnZRfgfgbSZg?via=matrix.org