blob: 1e7eb4ae20b93010f2480f31c4eaad68a6c6378e [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
var shouldBailout = false;
function test0(){
var FloatArr0 = [231762358,-2147483648,438008391,138,2.12355879560872E+18];
FloatArr0[12] = 1;
FloatArr0[6] = 1;
if(FloatArr0[((shouldBailout ? (FloatArr0[1] = 'x') : undefined ), 1)]) {
}
};
// generate profile
test0();
// Run Simple JIT
test0();
test0();
// run JITted code
runningJITtedCode = true;
test0();
// run code with bailouts enabled
shouldBailout = true;
test0();
WScript.Echo("Pass");