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:
committed by
Evgeny Gavrin
parent
cdf361c2bd
commit
352e8f5c04
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user