Minor stylefixes for the Array builtin

Related issue: #110

JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
Zsolt Borbély
2015-07-17 10:17:55 +02:00
committed by Evgeny Gavrin
parent cdf361c2bd
commit 352e8f5c04
3 changed files with 91 additions and 84 deletions
@@ -41,6 +41,15 @@ try {
assert(e instanceof TypeError);
}
try {
var a = new Array();
a.length = 10;
a.reduceRight(func);
assert (false);
} catch (e) {
assert (e instanceof TypeError)
}
// various checks
assert([].reduceRight(func, 1) === 1);