tor-browser

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

10.6-10-c-ii-1.js (466B)


      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-1
      6 description: arguments[i] change with actual parameters
      7 flags: [noStrict]
      8 ---*/
      9 
     10 function foo(a,b,c)
     11 {
     12  a = 1; b = 'str'; c = 2.1;
     13  if(arguments[0] === 1 && arguments[1] === 'str' && arguments[2] === 2.1)
     14    return true;
     15 }
     16 
     17 assert(foo(10,'sss',1), 'foo(10,"sss",1) !== true');
     18 
     19 reportCompare(0, 0);