diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
| commit | f06956efd2dc4bf77244a9fcce2b883a00b925af (patch) | |
| tree | 0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/regenerator-runtime | |
| parent | 8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff) | |
updated node modules
Diffstat (limited to 'node_modules/regenerator-runtime')
| -rw-r--r-- | node_modules/regenerator-runtime/package.json | 2 | ||||
| -rw-r--r-- | node_modules/regenerator-runtime/runtime.js | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/node_modules/regenerator-runtime/package.json b/node_modules/regenerator-runtime/package.json index 7010b0c5..503086f8 100644 --- a/node_modules/regenerator-runtime/package.json +++ b/node_modules/regenerator-runtime/package.json @@ -2,7 +2,7 @@ "name": "regenerator-runtime", "author": "Ben Newman <bn@cs.stanford.edu>", "description": "Runtime for Regenerator-compiled generator and async functions.", - "version": "0.14.0", + "version": "0.14.1", "main": "runtime.js", "keywords": [ "regenerator", diff --git a/node_modules/regenerator-runtime/runtime.js b/node_modules/regenerator-runtime/runtime.js index efaa79b0..5593ca59 100644 --- a/node_modules/regenerator-runtime/runtime.js +++ b/node_modules/regenerator-runtime/runtime.js @@ -259,8 +259,9 @@ var runtime = (function (exports) { throw arg; } - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume + // Be forgiving, per GeneratorResume behavior specified since ES2015: + // ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume + // Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume return doneResult(); } @@ -333,7 +334,7 @@ var runtime = (function (exports) { var method = delegate.iterator[methodName]; if (method === undefined) { // A .throw or .return when the delegate iterator has no .throw - // method, or a missing .next mehtod, always terminate the + // method, or a missing .next method, always terminate the // yield* loop. context.delegate = null; @@ -487,7 +488,7 @@ var runtime = (function (exports) { }; function values(iterable) { - if (iterable || iterable === "") { + if (iterable != null) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) { return iteratorMethod.call(iterable); |
