oro-sdk 5.9.0 → 5.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -144,14 +144,9 @@ function _regeneratorRuntime() {
144
144
  };
145
145
  }
146
146
  function maybeInvokeDelegate(delegate, context) {
147
- var method = delegate.iterator[context.method];
148
- if (undefined === method) {
149
- if (context.delegate = null, "throw" === context.method) {
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;