mirror of https://github.com/tc39/test262.git
20 lines
304 B
JavaScript
20 lines
304 B
JavaScript
var array = new Float64Array(1);
|
|
array[0] = 42;
|
|
|
|
function foo() {
|
|
return fiatInt52(bar()) + 1;
|
|
}
|
|
|
|
function bar() {
|
|
return array[0];
|
|
}
|
|
|
|
noInline(foo);
|
|
noInline(bar);
|
|
|
|
for (var i = 0; i < 1000000; ++i) {
|
|
var result = foo();
|
|
if (result != 43)
|
|
throw "Error: bad result: " + result;
|
|
}
|