From ea3f39486c37d6188706ac22081c610c9acc29db Mon Sep 17 00:00:00 2001 From: caitpotter88 Date: Tue, 17 Feb 2015 14:27:59 -0800 Subject: [PATCH] [tests]: fix exponentiation in harmony array-concat tests 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mjsunit/harmony/array-concat.js b/test/mjsunit/harmony/array-concat.js index 286aefd..c1ff92c 100644 --- a/test/mjsunit/harmony/array-concat.js +++ b/test/mjsunit/harmony/array-concat.js @@ -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, -- 2.7.4