|
1 |
|
2 var config = getBuildConfiguration(); |
|
3 |
|
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; |
|
9 |
|
10 let f = function() { |
|
11 }; |
|
12 |
|
13 try { |
|
14 f(...a); |
|
15 } catch (e) { |
|
16 assertEq(e.message, "too many function arguments"); |
|
17 } |
|
18 |
|
19 try { |
|
20 new f(...a); |
|
21 } catch (e) { |
|
22 assertEq(e.message, "too many constructor arguments"); |
|
23 } |
|
24 |
|
25 try { |
|
26 eval(...a); |
|
27 } catch (e) { |
|
28 assertEq(e.message, "too many function arguments"); |
|
29 } |
|
30 } |