Skip to content

Commit

Permalink
chore: don't use global as variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed May 6, 2024
1 parent 8223d79 commit 8b68a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/stream-extra/src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ interface GlobalExtension {
}

// `createTask` allows browser DevTools to track the call stack across async boundaries.
const global = globalThis as unknown as GlobalExtension;
const { console } = globalThis as unknown as GlobalExtension;
export const createTask: (name: string) => Task =
global.console?.createTask?.bind(global.console) ??
console?.createTask?.bind(console) ??
(() => ({
run(callback) {
return callback();
Expand Down

0 comments on commit 8b68a28

Please sign in to comment.