blob: 29689879219c3b9e17ab746beb060b1e35be8636 [file] [log] [blame]
var exception;
try {
eval("1 + 0");
} catch (e) {
exception = e;
}
if (!exception)
self.postMessage("FAIL should throw EvalError. But did not throw an exception.");
else {
if (exception instanceof EvalError)
self.postMessage("PASS threw exception " + exception + ".");
else
self.postMessage("FAIL should throw EvalError. Threw exception " + exception + ".");
}