tor-browser

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

early-errors-expression-eval-in-formal-parameters-strict.js (450B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright 2016 Microsoft, Inc. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 
      6 /*---
      7 author: Brian Terlson <brian.terlson@microsoft.com>
      8 esid: pending
      9 description: It is a SyntaxError if FormalParameters contains eval in strict mode
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 flags: [onlyStrict]
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 (async function foo (eval) {  })