tor-browser

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

func-expr-no-pre-existing-arguments-bindings-are-present-declare-arguments.js (706B)


      1 // This file was procedurally generated from the following sources:
      2 // - src/direct-eval-code/declare-arguments.case
      3 // - src/direct-eval-code/default/func-expr/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 
     11 assert.sameValue("arguments" in this, false, "No global 'arguments' binding");
     12 
     13 let f = function(p = eval("var arguments")) {}
     14 assert.throws(SyntaxError, f);
     15 
     16 assert.sameValue("arguments" in this, false, "No global 'arguments' binding");
     17 
     18 reportCompare(0, 0);