tor-browser

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

no-alias-arguments.js (419B)


      1 // Copyright (C) 2014 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 14.1
      5 description: >
      6    no alias arguments
      7 includes: [compareArray.js]
      8 ---*/
      9 function f(a, ...rest) {
     10  arguments[0] = 1;
     11  assert.sameValue(a, 3, "The value of `a` is `3`");
     12  arguments[1] = 2;
     13  assert.compareArray(rest, [4, 5]);
     14 }
     15 f(3, 4, 5);
     16 
     17 reportCompare(0, 0);