[tests]: fix exponentiation in harmony array-concat tests
authorcaitpotter88 <caitpotter88@gmail.com>
Tue, 17 Feb 2015 22:27:59 +0000 (14:27 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Feb 2015 22:28:12 +0000 (22:28 +0000)
BUG=
LOG=N
R=adamk@chromium.org

Review URL: https://codereview.chromium.org/921683006

Cr-Commit-Position: refs/heads/master@{#26710}

test/mjsunit/harmony/array-concat.js

index 286aefd..c1ff92c 100644 (file)
@@ -245,7 +245,7 @@ function testConcatTypedArray(type, elems, modulo) {
 }
 
 (function testConcatSmallTypedArray() {
-  var max = [2^8, 2^16, 2^32, false, false];
+  var max = [Math.pow(2, 8), Math.pow(2, 16), Math.pow(2, 32), false, false];
   [
     Uint8Array,
     Uint16Array,
@@ -259,7 +259,7 @@ function testConcatTypedArray(type, elems, modulo) {
 
 
 (function testConcatLargeTypedArray() {
-  var max = [2^8, 2^16, 2^32, false, false];
+  var max = [Math.pow(2, 8), Math.pow(2, 16), Math.pow(2, 32), false, false];
   [
     Uint8Array,
     Uint16Array,