abortcontroller-polyfill icon indicating copy to clipboard operation
abortcontroller-polyfill copied to clipboard

1.7.7 introduces requirement that `global` to be defined

Open thomasballinger opened this issue 1 year ago • 1 comments

As of 1.7.7 abortcontroller-polyfill requires global or self to be defined to run

import {
  AbortController,
  AbortSignal,
} from "abortcontroller-polyfill/dist/abortcontroller";

Is this intentional, would you accept a PR to change this?

global isn't defined in the WinterCG runtime spec, and Convex's JS runtime which attempts to follow it doesn't have it defined.

thomasballinger avatar Dec 23 '24 21:12 thomasballinger

@thomasballinger PR welcome

mo avatar Dec 24 '24 12:12 mo