js/src/tests/test262/ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Arguments : (ArgumentList : ArgumentList, AssignmentExpression)
     6  *
     7  * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T2.js
     8  * @description Return an internal list whose length is one greater than the
     9  * length of ArgumentList and whose items are the items of ArgumentList, in order,
    10  * followed at the end by GetValue(AssignmentExpression), which is the last item of
    11  * the new list
    12  */
    14 function f_arg() {
    15 }
    17 //CHECK#1
    18 try {
    19   f_arg(x,x=1);
    20   $ERROR('#1.1: function f_arg() {} f_arg(x,x=1) throw ReferenceError. Actual: ' + (f_arg(x,x=1)));  
    21 }
    22 catch (e) {
    23   if ((e instanceof ReferenceError) !== true) {
    24     $ERROR('#1.2: function f_arg() {} f_arg(x,x=1) throw ReferenceError. Actual: ' + (e));  
    25   }
    26 }

mercurial