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