summaryrefslogtreecommitdiff
path: root/node_modules/regenerator-runtime/runtime.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/regenerator-runtime/runtime.js
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/regenerator-runtime/runtime.js')
-rw-r--r--node_modules/regenerator-runtime/runtime.js9
1 files changed, 5 insertions, 4 deletions
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);