+15
−14
Loading
Calling `GPUBuffer.mapAsync` returns a `Promise` that is rejected if something goes wrong mapping the buffer, but Firefox's error message doesn't really say anything to indicate that mapping was involved: "Invalid buffer" is a bit mysterious. Ideally we would attach call stacks to these promises - and I think there is a way to do that - but for now this patch just changes the error messages to mention mapping. While we're in the neighborhood, improve some `NS_WARNING` messages. Differential Revision: https://phabricator.services.mozilla.com/D173493