tor-browser

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

arrow-fn-no-pre-existing-arguments-bindings-are-present-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.js (815B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/direct-eval-code/arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.case
      3 // - src/direct-eval-code/arrow-func/no-pre-existing-arguments-bindings-are-present.template
      4 /*---
      5 description: Declare "arguments" and assign to it in direct eval code (Declare |arguments| when no pre-existing |arguments| bindings are present.)
      6 esid: sec-evaldeclarationinstantiation
      7 flags: [generated, noStrict]
      8 ---*/
      9 
     10 const oldArguments = globalThis.arguments;
     11 let count = 0;
     12 const f = (p = eval("var arguments = 'param'"), q = () => arguments) => {
     13  assert.sameValue(arguments, "param");
     14  count++;
     15 }
     16 f();
     17 assert.sameValue(count, 1);
     18 assert.sameValue(globalThis.arguments, oldArguments, "globalThis.arguments unchanged");
     19 
     20 reportCompare(0, 0);