oro-sdk 5.9.0 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,14 +144,9 @@ function _regeneratorRuntime() {
|
|
144
144
|
};
|
145
145
|
}
|
146
146
|
function maybeInvokeDelegate(delegate, context) {
|
147
|
-
var
|
148
|
-
|
149
|
-
|
150
|
-
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
151
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
152
|
-
}
|
153
|
-
return ContinueSentinel;
|
154
|
-
}
|
147
|
+
var methodName = context.method,
|
148
|
+
method = delegate.iterator[methodName];
|
149
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
155
150
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
156
151
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
157
152
|
var info = record.arg;
|