diff --git a/src/dawn_node/binding/GPUDevice.cpp b/src/dawn_node/binding/GPUDevice.cpp index 2f928e5dc1..3b65fa2d41 100644 --- a/src/dawn_node/binding/GPUDevice.cpp +++ b/src/dawn_node/binding/GPUDevice.cpp @@ -431,7 +431,7 @@ namespace wgpu { namespace binding { } void GPUDevice::pushErrorScope(Napi::Env env, interop::GPUErrorFilter filter) { - wgpu::ErrorFilter f = wgpu::ErrorFilter::None; + wgpu::ErrorFilter f; switch (filter) { case interop::GPUErrorFilter::kOutOfMemory: f = wgpu::ErrorFilter::OutOfMemory;