1 |
|
2 |
|
3 | var g =
|
4 | typeof global === "object" ? global :
|
5 | typeof window === "object" ? window :
|
6 | typeof self === "object" ? self : this;
|
7 |
|
8 |
|
9 |
|
10 | var hadRuntime = g.regeneratorRuntime &&
|
11 | Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
|
12 |
|
13 |
|
14 | var oldRuntime = hadRuntime && g.regeneratorRuntime;
|
15 |
|
16 |
|
17 | g.regeneratorRuntime = undefined;
|
18 |
|
19 | module.exports = require("./runtime");
|
20 |
|
21 | if (hadRuntime) {
|
22 |
|
23 | g.regeneratorRuntime = oldRuntime;
|
24 | } else {
|
25 |
|
26 | try {
|
27 | delete g.regeneratorRuntime;
|
28 | } catch(e) {
|
29 | g.regeneratorRuntime = undefined;
|
30 | }
|
31 | }
|