Skip to content

Commit

Permalink
Merge pull request #3 from supabase/abort-signal
Browse files Browse the repository at this point in the history
fix: expose AbortController and AbortSignal
  • Loading branch information
laktek authored Feb 2, 2023
2 parents 3642e04 + 1bbb77b commit e3fdc0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/src/js_worker/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
StringPrototypeSplit
}= window.__bootstrap.primordials;

const abortSignal = window.__bootstrap.abortSignal;
const base64 = window.__bootstrap.base64;
const Console = window.__bootstrap.console.Console;
const colors = window.__bootstrap.colors;
Expand Down Expand Up @@ -267,6 +268,9 @@
// form data
FormData: nonEnumerable(formData.FormData),

// abort signal
AbortController: util.nonEnumerable(abortSignal.AbortController),
AbortSignal: util.nonEnumerable(abortSignal.AbortSignal),
}

//function registerErrors() {
Expand Down

0 comments on commit e3fdc0c

Please sign in to comment.