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.
2 var config = getBuildConfiguration();
4 // FIXME: ASAN and debug builds run this too slowly for now. Re-enable
5 // after bug 919948 lands.
6 if (!config.debug && !config.asan) {
7 let a = [];
8 a.length = getMaxArgs() + 1;
10 let f = function() {
11 };
13 try {
14 f(...a);
15 } catch (e) {
16 assertEq(e.message, "too many function arguments");
17 }
19 try {
20 new f(...a);
21 } catch (e) {
22 assertEq(e.message, "too many constructor arguments");
23 }
25 try {
26 eval(...a);
27 } catch (e) {
28 assertEq(e.message, "too many function arguments");
29 }
30 }