@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 CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.32.6](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.5...@next-core/brick-utils@2.32.6) (2022-01-13)
7
+
8
+ **Note:** Version bump only for package @next-core/brick-utils
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.32.5](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.4...@next-core/brick-utils@2.32.5) (2022-01-07)
15
+
16
+ **Note:** Version bump only for package @next-core/brick-utils
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.32.4](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.3...@next-core/brick-utils@2.32.4) (2022-01-05)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * refine some types ([13d041a](https://github.com/easyops-cn/next-core/commit/13d041a8e5d0b714d96a7b6e41a5e8167993733a))
28
+
29
+
30
+
31
+
32
+
33
+ ## [2.32.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.2...@next-core/brick-utils@2.32.3) (2021-12-30)
34
+
35
+ **Note:** Version bump only for package @next-core/brick-utils
36
+
37
+
38
+
39
+
40
+
6
41
  ## [2.32.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-utils@2.32.1...@next-core/brick-utils@2.32.2) (2021-12-29)
7
42
 
8
43
  **Note:** Version bump only for package @next-core/brick-utils
@@ -2211,7 +2211,19 @@
2211
2211
  getRunningContext().LexicalEnvironment = oldEnv;
2212
2212
 
2213
2213
  if (!LoopContinues(result)) {
2214
- return UpdateEmpty(result, V);
2214
+ var status = UpdateEmpty(result, V);
2215
+
2216
+ if (!(iterationKind === "enumerate" || iteratorRecord.return === undefined)) {
2217
+ // Perform *IteratorClose*
2218
+ // https://tc39.es/ecma262/#sec-iteratorclose
2219
+ var innerResult = iteratorRecord.return();
2220
+
2221
+ if (!innerResult || !["object", "function"].includes(typeof innerResult)) {
2222
+ throw new TypeError("Iterator result is not an object");
2223
+ }
2224
+ }
2225
+
2226
+ return status;
2215
2227
  }
2216
2228
 
2217
2229
  if (result.Value !== Empty) {