[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / compare-eq-incomplete-profile.js
1 var createBuiltin = $vm.createBuiltin;
2
3 const test = createBuiltin(`(function (arg) {
4     let other = @undefined;
5     @idWithProfile(other, "SpecObject");
6     return arg == other;
7 })`);
8
9 for (let i = 0; i < 10000; i++) {
10     test({});
11     test(null);
12 }