summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1028910.js
blob: 25c0f7762e39ec6843feb2c91cbef660b47c706b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
setJitCompilerOption("ion.warmup.trigger", 4);

var IsObject = getSelfHostedValue("IsObject")
function test(foo) {
    if (IsObject(foo)) {
        print(foo.test)
    }

}

for (var i=0; i<10; i++) {
  test(1)
  test({})
}