blob: acba37346279b9997fe35901cfb76152a7624bbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Compiling a script with null filename does not break the Error constructor.
var exc = null;
try {
evaluate("throw Error('pass');", {fileName: null});
} catch (x) {
exc = x;
}
assertEq(exc.constructor, Error);
assertEq(exc.message, "pass");
assertEq(exc.fileName, "");
|