From 0e49a4837bd98bf53b39d30db0690bfb2bcdf5ef Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 10 Jan 2025 12:50:08 -0800 Subject: [PATCH] Adjust print_environment for node node doesn't have a global `navigator` variable. --- src/webgpu/print_environment.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgpu/print_environment.spec.ts b/src/webgpu/print_environment.spec.ts index 9a47f8320cd..83c3e4a62be 100644 --- a/src/webgpu/print_environment.spec.ts +++ b/src/webgpu/print_environment.spec.ts @@ -54,7 +54,7 @@ WPT disallows console.log and doesn't support logs on passing tests, so this doe const info = JSON.stringify( { - userAgent: navigator.userAgent, + userAgent: globalThis.navigator?.userAgent, globalScope: Object.getPrototypeOf(globalThis).constructor.name, globalTestConfig, baseResourcePath: getResourcePath(''),