mgpuDestroyOwnDevice function
Destroy the retained creation device, never an ambient/replacement device. Completion of its loss promise is observed separately by the platform owner.
Implementation
void mgpuDestroyOwnDevice(JSObject device) =>
device.callMethod<JSAny?>('destroy'.toJS);