@meteorjs/babel 7.17.0-beta.1 → 7.17.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime.js +3 -3
package/package.json
CHANGED
package/runtime.js
CHANGED
|
@@ -16,14 +16,14 @@ require("meteor-promise").makeCompatible(
|
|
|
16
16
|
require("promise/lib/es6-extensions"),
|
|
17
17
|
require("fibers")
|
|
18
18
|
);
|
|
19
|
-
|
|
19
|
+
console.log('global.PromiseFiber', global.PromiseFiber);
|
|
20
20
|
// If Promise.asyncApply is defined, use it to wrap calls to
|
|
21
21
|
// regeneratorRuntime.async so that the entire async function will run in
|
|
22
22
|
// its own Fiber, not just the code that comes after the first await.
|
|
23
|
-
if (typeof PromiseFiber.asyncApply === "function") {
|
|
23
|
+
if (typeof global.PromiseFiber.asyncApply === "function") {
|
|
24
24
|
var regeneratorRuntime = require("@babel/runtime/regenerator");
|
|
25
25
|
var realAsync = regeneratorRuntime.async;
|
|
26
26
|
regeneratorRuntime.async = function (innerFn) {
|
|
27
|
-
return PromiseFiber.asyncApply(realAsync, regeneratorRuntime, arguments);
|
|
27
|
+
return global.PromiseFiber.asyncApply(realAsync, regeneratorRuntime, arguments);
|
|
28
28
|
};
|
|
29
29
|
}
|