Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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, "");