tor-browser

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

prop-def-invalid-star-prefix.js (505B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2019 Tiancheng "Timothy" Gu. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 description: >
      7  * is not a valid prefix of an identifier reference
      8 esid: sec-object-initializer
      9 info: |
     10    PropertyDefinition:
     11      IdentifierReference
     12      CoverInitializedName
     13      PropertyName : AssignmentExpression
     14      MethodDefinition
     15 negative:
     16  phase: parse
     17  type: SyntaxError
     18 ---*/
     19 
     20 $DONOTEVALUATE();
     21 
     22 ({* foo});