diff options
Diffstat (limited to 'includes/external/school/node_modules/@babel/runtime/regenerator')
-rw-r--r-- | includes/external/school/node_modules/@babel/runtime/regenerator/index.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/@babel/runtime/regenerator/index.js b/includes/external/school/node_modules/@babel/runtime/regenerator/index.js new file mode 100644 index 0000000..5881357 --- /dev/null +++ b/includes/external/school/node_modules/@babel/runtime/regenerator/index.js @@ -0,0 +1,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); + } +} |