tor-browser

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

10.6-10-c-ii-2.js (460B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 10.6-10-c-ii-2
      6 description: arguments[i] map to actual parameter
      7 flags: [noStrict]
      8 ---*/
      9 
     10 function foo(a,b,c)
     11 {
     12  arguments[0] = 1; arguments[1] = 'str'; arguments[2] = 2.1;
     13  if(1 === a && 'str' === b && 2.1 === c)
     14    return true;
     15 }
     16 
     17 assert(foo(10,'sss',1), 'foo(10,"sss",1) !== true');
     18 
     19 reportCompare(0, 0);