js/src/jit-test/tests/basic/spread-call-maxarg.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

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 }

mercurial