Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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 }