[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / flush-after-force-exit-in-bytecodeparser-needs-to-update-argument-positions.js
1 //@ runDefault("--useConcurrentGC=0", "--thresholdForJITAfterWarmUp=10", "--thresholdForJITSoon=10", "--thresholdForOptimizeAfterWarmUp=20", "--thresholdForOptimizeAfterLongWarmUp=20", "--thresholdForOptimizeSoon=20", "--thresholdForFTLOptimizeAfterWarmUp=20", "--thresholdForFTLOptimizeSoon=20", "--maximumEvalCacheableSourceLength=150000", "--maxPerThreadStackUsage=1048576")
2
3 function runNearStackLimit(f) {
4     function t() {
5         try {
6             return t();
7         } catch (e) {
8             return f();
9         }
10     }
11     return t();
12 };
13
14 runNearStackLimit(() => { });
15 runNearStackLimit(() => { });
16
17 function f2(a, b) {
18     'use strict';
19     try {
20         a.push(arguments[0] + arguments[2] + a + undefinedVariable);
21     } catch (e) { }
22 }
23
24 try {
25     runNearStackLimit(() => {
26         return f2(1, 2, 3);
27     });
28 } catch (e) {}
29
30 try {
31     runNearStackLimit();
32 } catch { }