blob: 1df01b484878cd9340934e2b5fb03321b4b3eeed (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
try {
Array.from();
} catch (e) {
assertEq(e.columnNumber, 11);
// Filter the filename from the stack, since we have no clue what
// to expect there. Search for ':' from the end, because the file
// path may contain ':' in it.
var lastColon = e.stack.lastIndexOf(':');
var afterPath = e.stack.lastIndexOf(':', lastColon - 1);
assertEq(e.stack.substring(afterPath), ":2:11\n");
}
|