summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNativeLog.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testNativeLog.js')
-rw-r--r--js/src/jit-test/tests/basic/testNativeLog.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testNativeLog.js b/js/src/jit-test/tests/basic/testNativeLog.js
new file mode 100644
index 0000000000..5a81c79e77
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testNativeLog.js
@@ -0,0 +1,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");