Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 // Compiling a script with null filename does not break the Error constructor.
2
3 var exc = null;
4 try {
5 evaluate("throw Error('pass');", {fileName: null});
6 } catch (x) {
7 exc = x;
8 }
9 assertEq(exc.constructor, Error);
10 assertEq(exc.message, "pass");
11 assertEq(exc.fileName, "");