PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 1ms

/js/src/jit-test/tests/basic/testNativeLog.js

http://github.com/zpao/v8monkey
JavaScript | 8 lines | 8 code | 0 blank | 0 comment | 1 complexity | e714a00363782d621f501e713cc2050a MD5 | raw file
1function testNativeLog() {
2  var a = new Array(5);
3  for (var i = 0; i < 5; i++) {
4    a[i] = Math.log(Math.pow(Math.E, 10));
5  }
6  return a.join(",");
7}
8assertEq(testNativeLog(), "10,10,10,10,10");