blob: 6c826e0c20b1dd3512e8b772dccbfd2d42a9e0d5 [file] [log] [blame]
function f(foo) {
"use strict";
foo.bar;
}
var actual;
try {
f();
actual = "no error";
} catch (x) {
actual = (x instanceof TypeError) ? "type error" : "some other error";
actual += (/use strict/.test(x)) ? " with directive" : " without directive";
}
reportCompare("type error without directive", actual,
"decompiled expressions in error messages should not include directive prologues");