oro-sdk-apis 4.1.0 → 4.2.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.
@@ -147,14 +147,9 @@ function _regeneratorRuntime() {
147
147
  };
148
148
  }
149
149
  function maybeInvokeDelegate(delegate, context) {
150
- var method = delegate.iterator[context.method];
151
- if (undefined === method) {
152
- if (context.delegate = null, "throw" === context.method) {
153
- if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
154
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
155
- }
156
- return ContinueSentinel;
157
- }
150
+ var methodName = context.method,
151
+ method = delegate.iterator[methodName];
152
+ 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;
158
153
  var record = tryCatch(method, delegate.iterator, context.arg);
159
154
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
160
155
  var info = record.arg;