Skip to content

Commit 34ab980

Browse files
committed
Increase test coverage: Array.prototype.toString
Branch coverage: Before: 5/6 After: 6/6 JerryScript-DCO-1.0-Signed-off-by: Mate Dabis mdabis@inf.u-szeged.hu
1 parent c23cf41 commit 34ab980

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/jerry/array-prototype-tostring.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,12 @@ try {
6161
assert (e.message === "foo");
6262
assert (e instanceof ReferenceError);
6363
}
64+
65+
/* ES 6.0 22.1.3.27 2. */
66+
// Checking behavior when the function's this_argument is undefined
67+
try {
68+
Array.prototype.toString.call(undefined);
69+
assert(false);
70+
} catch (e) {
71+
assert(e instanceof TypeError);
72+
}

0 commit comments

Comments
 (0)