/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
- 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");