tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S11.2.4_A1.4_T2.js (883B)


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