Skip to content

Commit b82f2fe

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 b82f2fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/jerry/array-prototype-tostring.js

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

0 commit comments

Comments
 (0)