From e256a76e9d96353f960724faef0b62741a1341d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Bargull?= <andre.bargull@gmail.com>
Date: Mon, 4 Aug 2014 19:44:22 +0200
Subject: [PATCH] Correct Array.prototype.fill tests (Fixes #63)

The expected results weren't correct.
---
 test/suite/es6/ch22/22.1/22.1.3/S22.1.3.6_T1.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/suite/es6/ch22/22.1/22.1.3/S22.1.3.6_T1.js b/test/suite/es6/ch22/22.1/22.1.3/S22.1.3.6_T1.js
index a60f70aca5..8e4984975d 100644
--- a/test/suite/es6/ch22/22.1/22.1.3/S22.1.3.6_T1.js
+++ b/test/suite/es6/ch22/22.1/22.1.3/S22.1.3.6_T1.js
@@ -12,7 +12,7 @@ runTestCase(function () {
   var testArr = new Array('testString', 'anotherTestString', 3),
       updatedArr = testArr.fill('newValue', 1, 3);
 
-  if (updatedArr[3] !== 'newValue') {
+  if (updatedArr[3] !== void 0) {
     return false;
   }
 
@@ -20,11 +20,15 @@ runTestCase(function () {
     return false;
   }
 
+  if (updatedArr[1] !== 'newValue') {
+    return false;
+  }
+
   if (updatedArr[0] !== 'testString') {
     return false;
   }
 
-  if (updatedArr.length !== 4) {
+  if (updatedArr.length !== 3) {
     return false;
   }
 
-- 
GitLab