From 99f2e4d5ac0cd75de01f30c422b65db74872eaa3 Mon Sep 17 00:00:00 2001 From: "ishell@chromium.org" Date: Fri, 9 May 2014 16:11:50 +0000 Subject: [PATCH] Fix typos in unit test for Array.prototype.fill() BUG= LOG=y R=ishell@chromium.org Review URL: https://codereview.chromium.org/277953002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21231 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/harmony/array-fill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mjsunit/harmony/array-fill.js b/test/mjsunit/harmony/array-fill.js index 571233f..eae18d1 100644 --- a/test/mjsunit/harmony/array-fill.js +++ b/test/mjsunit/harmony/array-fill.js @@ -4,7 +4,7 @@ // Flags: --harmony-arrays -assertEquals(1, Array.prototype.find.length); +assertEquals(1, Array.prototype.fill.length); assertArrayEquals([].fill(8), []); assertArrayEquals([0, 0, 0, 0, 0].fill(), [undefined, undefined, undefined, undefined, undefined]); @@ -22,7 +22,7 @@ assertArrayEquals([0, 0, 0, 0, 0].fill(8, -1, -3), [0, 0, 0, 0, 0]); assertArrayEquals([0, 0, 0, 0, 0].fill(8, undefined, 4), [8, 8, 8, 8, 0]); assertArrayEquals([ , , , , 0].fill(8, 1, 3), [, 8, 8, , 0]); -// If the range if empty, the array is not actually modified and +// If the range is empty, the array is not actually modified and // should not throw, even when applied to a frozen object. assertArrayEquals(Object.freeze([1, 2, 3]).fill(0, 0, 0), [1, 2, 3]); -- 2.7.4