[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / arity-mismatch-inlining-extra-slots.js
1 function shouldBe(actual, expected)
2 {
3     if (actual !== expected)
4         throw new Error('bad value: ' + actual);
5 }
6
7 function inlineTarget(arg1, arg2)
8 {
9     return [arg1, arg2];
10 }
11
12 function test() {
13     shouldBe(JSON.stringify(inlineTarget(null)), `[null,null]`);
14 }
15 noInline(test);
16 for (var i = 0; i < 3e4; ++i)
17     test();