diff options
Diffstat (limited to 'node_modules/babel-runtime/helpers')
-rw-r--r-- | node_modules/babel-runtime/helpers/asyncGenerator.js | 8 | ||||
-rw-r--r-- | node_modules/babel-runtime/helpers/asyncIterator.js | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/node_modules/babel-runtime/helpers/asyncGenerator.js b/node_modules/babel-runtime/helpers/asyncGenerator.js index 574b28a50..ebbea0964 100644 --- a/node_modules/babel-runtime/helpers/asyncGenerator.js +++ b/node_modules/babel-runtime/helpers/asyncGenerator.js @@ -2,10 +2,6 @@ exports.__esModule = true; -var _asyncIterator = require("../core-js/symbol/async-iterator"); - -var _asyncIterator2 = _interopRequireDefault(_asyncIterator); - var _symbol = require("../core-js/symbol"); var _symbol2 = _interopRequireDefault(_symbol); @@ -99,8 +95,8 @@ exports.default = function () { } } - if (typeof _symbol2.default === "function" && _asyncIterator2.default) { - AsyncGenerator.prototype[_asyncIterator2.default] = function () { + if (typeof _symbol2.default === "function" && _symbol2.default.asyncIterator) { + AsyncGenerator.prototype[_symbol2.default.asyncIterator] = function () { return this; }; } diff --git a/node_modules/babel-runtime/helpers/asyncIterator.js b/node_modules/babel-runtime/helpers/asyncIterator.js index 03409891f..b542b6c78 100644 --- a/node_modules/babel-runtime/helpers/asyncIterator.js +++ b/node_modules/babel-runtime/helpers/asyncIterator.js @@ -10,10 +10,6 @@ var _iterator = require("../core-js/symbol/iterator"); var _iterator2 = _interopRequireDefault(_iterator); -var _asyncIterator = require("../core-js/symbol/async-iterator"); - -var _asyncIterator2 = _interopRequireDefault(_asyncIterator); - var _symbol = require("../core-js/symbol"); var _symbol2 = _interopRequireDefault(_symbol); @@ -22,8 +18,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de exports.default = function (iterable) { if (typeof _symbol2.default === "function") { - if (_asyncIterator2.default) { - var method = iterable[_asyncIterator2.default]; + if (_symbol2.default.asyncIterator) { + var method = iterable[_symbol2.default.asyncIterator]; if (method != null) return method.call(iterable); } |