UNPKG

448 BJavaScriptView Raw
1// TODO(Babel 8): Remove this file.
2
3var runtime = require("../helpers/regeneratorRuntime")();
4module.exports = runtime;
5
6// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
7try {
8 regeneratorRuntime = runtime;
9} catch (accidentalStrictMode) {
10 if (typeof globalThis === "object") {
11 globalThis.regeneratorRuntime = runtime;
12 } else {
13 Function("r", "regeneratorRuntime = r")(runtime);
14 }
15}