@next-core/brick-utils 2.32.2 → 2.32.6
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.
- package/CHANGELOG.md +35 -0
- package/dist/index.bundle.js +13 -1
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +13 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/visitStoryboard.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2206,7 +2206,19 @@ function cook(rootAst, codeSource) {
|
|
|
2206
2206
|
getRunningContext().LexicalEnvironment = oldEnv;
|
|
2207
2207
|
|
|
2208
2208
|
if (!LoopContinues(result)) {
|
|
2209
|
-
|
|
2209
|
+
var status = UpdateEmpty(result, V);
|
|
2210
|
+
|
|
2211
|
+
if (!(iterationKind === "enumerate" || iteratorRecord.return === undefined)) {
|
|
2212
|
+
// Perform *IteratorClose*
|
|
2213
|
+
// https://tc39.es/ecma262/#sec-iteratorclose
|
|
2214
|
+
var innerResult = iteratorRecord.return();
|
|
2215
|
+
|
|
2216
|
+
if (!innerResult || !["object", "function"].includes(typeof innerResult)) {
|
|
2217
|
+
throw new TypeError("Iterator result is not an object");
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
return status;
|
|
2210
2222
|
}
|
|
2211
2223
|
|
|
2212
2224
|
if (result.Value !== Empty) {
|