From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- .../@babel/runtime/helpers/builtin/asyncIterator.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 node_modules/@babel/runtime/helpers/builtin/asyncIterator.js (limited to 'node_modules/@babel/runtime/helpers/builtin/asyncIterator.js') diff --git a/node_modules/@babel/runtime/helpers/builtin/asyncIterator.js b/node_modules/@babel/runtime/helpers/builtin/asyncIterator.js new file mode 100644 index 00000000..c1a1b313 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/builtin/asyncIterator.js @@ -0,0 +1,19 @@ +function _asyncIterator(iterable) { + var method; + + if (typeof Symbol === "function") { + if (Symbol.asyncIterator) { + method = iterable[Symbol.asyncIterator]; + if (method != null) return method.call(iterable); + } + + if (Symbol.iterator) { + method = iterable[Symbol.iterator]; + if (method != null) return method.call(iterable); + } + } + + throw new TypeError("Object is not async iterable"); +} + +module.exports = _asyncIterator; \ No newline at end of file -- cgit v1.2.3