Fixed Array.prototype.concat error type (#4117)

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2020-08-07 14:34:57 +02:00
committed by GitHub
parent f4f9cde3e7
commit 58a649ffe8
3 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -31,14 +31,14 @@ function compareArray(a, b) {
Array.prototype.concat.call({}, {[Symbol.isConcatSpreadable]: true, length : 2 **53 - 1})
assert(false);
} catch (e) {
assert(e instanceof RangeError);
assert(e instanceof TypeError);
}
try {
Array.prototype.concat.call([1, 2, 3, 4], {[Symbol.isConcatSpreadable]: true, length : 2 **53 - 4})
assert(false);
} catch (e) {
assert(e instanceof RangeError);
assert(e instanceof TypeError);
}
})();