Changeset 276298 in webkit
- Timestamp:
- Apr 20, 2021, 3:25:08 AM (5 years ago)
- Location:
- trunk/JSTests
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
stress/early-return-from-builtin.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r276285 r276298 1 2021-04-20 Yusuke Suzuki <ysuzuki@apple.com> 2 3 [JSC] Limit memory allocation size of JSTests/stress/early-return-from-builtin.js 4 https://bugs.webkit.org/show_bug.cgi?id=224803 5 <rdar://problem/75597901> 6 7 Reviewed by Ryosuke Niwa. 8 9 Add limit to JSTests/stress/early-return-from-builtin.js to avoid infinite allocation. 10 11 * stress/early-return-from-builtin.js: 12 (let.iter.Symbol.iterator): 13 1 14 2021-04-19 Yusuke Suzuki <ysuzuki@apple.com> 2 15 -
trunk/JSTests/stress/early-return-from-builtin.js
r275232 r276298 1 //@ skip if ($architecture != "arm64" and $architecture != "x86-64") or $memoryLimited2 1 //@ runDefault("--earlyReturnFromInfiniteLoopsLimit=10", "--returnEarlyFromInfiniteLoopsForFuzzing=1", "--watchdog=1000", "--watchdog-exception-ok") 3 2 … … 9 8 10 9 10 let i = 0; 11 11 let iter = { 12 12 [Symbol.iterator]() { 13 13 return { 14 14 next() { 15 return o; 15 ++i 16 if (i < 1e6) 17 return o; 18 return { 19 done: true 20 }; 16 21 } 17 22 }
Note:
See TracChangeset
for help on using the changeset viewer.