tor-browser

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

param-duplicated-strict-body-2.js (763B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (c) 2012 Ecma International.  All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 info: |
      7    Refer 13.1;
      8    It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
      9    FunctionDeclaration or FunctionExpression.
     10 es5id: 13.1-32-s
     11 description: >
     12    Strict Mode - SyntaxError is thrown if a function is created using
     13    a FunctionExpression whose FunctionBody is strict and the function
     14    has two identical parameters, which are separated by a unique
     15    parameter name
     16 negative:
     17  phase: parse
     18  type: SyntaxError
     19 flags: [noStrict]
     20 ---*/
     21 
     22 $DONOTEVALUATE();
     23 
     24 (function (param1, param2, param1) { 'use strict'; });