summaryrefslogtreecommitdiff
path: root/test/suite
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2011-05-18 15:27:12 -0700
committerDavid Fugate <dfugate@microsoft.com>2011-05-18 15:27:12 -0700
commit18922347f61d7abf4a8148c1e26b0b12ef7961d6 (patch)
tree0b366f4277b756f2185be640989d966de26939f8 /test/suite
parent93f5972dec927a40c0a758a7887b475fa0333d55 (diff)
downloadtest262-18922347f61d7abf4a8148c1e26b0b12ef7961d6.tar.gz
Original test author fixed Bug #69.
Diffstat (limited to 'test/suite')
-rw-r--r--test/suite/ietestcenter/chapter15/15.4/15.4.4/15.4.4.4/15.4.4.4-5-c-i-1.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/suite/ietestcenter/chapter15/15.4/15.4.4/15.4.4.4/15.4.4.4-5-c-i-1.js b/test/suite/ietestcenter/chapter15/15.4/15.4.4/15.4.4.4/15.4.4.4-5-c-i-1.js
index d890305a3..f6fe720e2 100644
--- a/test/suite/ietestcenter/chapter15/15.4/15.4.4/15.4.4.4/15.4.4.4-5-c-i-1.js
+++ b/test/suite/ietestcenter/chapter15/15.4/15.4.4/15.4.4.4/15.4.4.4-5-c-i-1.js
@@ -35,8 +35,10 @@ ES5Harness.registerTest({
var newArr = Array.prototype.concat.call(101);
- return newArr.hasOwnProperty("0") && newArr[0] === 101;
+ var hasProperty = newArr.hasOwnProperty("0");
+ var instanceOfVerify = newArr[0] instanceof Number;
+
var verifyValue = false;
verifyValue = newArr[0] === 101;
@@ -55,7 +57,8 @@ ES5Harness.registerTest({
delete newArr[0];
verifyConfigurable = newArr.hasOwnProperty("0");
- return verifyValue && !verifyConfigurable && verifyEnumerable && verifyWritable;
+ return hasProperty && instanceOfVerify && verifyValue && !verifyConfigurable && verifyEnumerable && verifyWritable;
+
} finally {
delete Array.prototype[0];