summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNativeLog.js
blob: 5a81c79e773fccad0a08837969a811465c8be525 (plain)
1
2
3
4
5
6
7
8
function testNativeLog() {
  var a = new Array(5);
  for (var i = 0; i < 5; i++) {
    a[i] = Math.log(Math.pow(Math.E, 10));
  }
  return a.join(",");
}
assertEq(testNativeLog(), "10,10,10,10,10");