Updating NPM dependencies
This commit is contained in:
9
node_modules/gensync/index.js
generated
vendored
9
node_modules/gensync/index.js
generated
vendored
@@ -33,6 +33,11 @@ module.exports = Object.assign(
|
||||
async: function(args, resolve, reject) {
|
||||
const items = Array.from(args[0]);
|
||||
|
||||
if (items.length === 0) {
|
||||
Promise.resolve().then(() => resolve([]));
|
||||
return;
|
||||
}
|
||||
|
||||
let count = 0;
|
||||
const results = items.map(() => undefined);
|
||||
items.forEach((item, i) => {
|
||||
@@ -201,7 +206,9 @@ function buildOperation({ name, arity, sync, async }) {
|
||||
return setFunctionMetadata(name, arity, function*(...args) {
|
||||
const resume = yield GENSYNC_START;
|
||||
if (!resume) {
|
||||
return sync.call(this, args);
|
||||
// Break the tail call to avoid a bug in V8 v6.X with --harmony enabled.
|
||||
const res = sync.call(this, args);
|
||||
return res;
|
||||
}
|
||||
|
||||
let result;
|
||||
|
||||
Reference in New Issue
Block a user