Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 function f(foo) {
2 "use strict";
3 foo.bar;
4 }
6 var actual;
7 try {
8 f();
9 actual = "no error";
10 } catch (x) {
11 actual = (x instanceof TypeError) ? "type error" : "some other error";
12 actual += (/use strict/.test(x)) ? " with directive" : " without directive";
13 }
15 reportCompare("type error without directive", actual,
16 "decompiled expressions in error messages should not include directive prologues");