tor-browser

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

getter-param-dflt.js (564B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-method-definitions
      6 es6id: 14.3
      7 description: >
      8  Get accessor method may not have a formal parameter (regardless of the
      9  presence of an initializer)
     10 info: |
     11  Syntax
     12 
     13  MethodDefinition[Yield] :
     14 
     15    get PropertyName[?Yield] ( ) { FunctionBody }
     16 features: [default-parameters]
     17 negative:
     18  phase: parse
     19  type: SyntaxError
     20 ---*/
     21 
     22 $DONOTEVALUATE();
     23 
     24 0, { get a(param = null) {} };