Skip to content

Commit

Permalink
Adjust print_environment for node
Browse files Browse the repository at this point in the history
node doesn't have a global `navigator` variable.
  • Loading branch information
greggman committed Jan 10, 2025
1 parent 1874295 commit 0e49a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgpu/print_environment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(''),
Expand Down

0 comments on commit 0e49a48

Please sign in to comment.