aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/@babel/runtime/regenerator/index.js
blob: 5881357364f41aea98c1c01ab2b9056adc79689f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// TODO(Babel 8): Remove this file.

var runtime = require("../helpers/regeneratorRuntime")();
module.exports = runtime;

// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
try {
  regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
  if (typeof globalThis === "object") {
    globalThis.regeneratorRuntime = runtime;
  } else {
    Function("r", "regeneratorRuntime = r")(runtime);
  }
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage