tor-browser

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

value-yield-strict-escaped-strict.js (720B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2017 André Bargull. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 
      6 /*---
      7 esid: sec-identifiers-static-semantics-early-errors
      8 description: >
      9  `yield` is a reserved identifier in strict mode code and may not be used as a label.
     10 info: |
     11  Identifier : IdentifierName but not ReservedWord
     12 
     13  It is a Syntax Error if this phrase is contained in strict mode code and the
     14  StringValue of IdentifierName is: "implements", "interface", "let", "package",
     15  "private", "protected", "public", "static", or "yield".
     16 negative:
     17  phase: parse
     18  type: SyntaxError
     19 flags: [onlyStrict]
     20 ---*/
     21 
     22 $DONOTEVALUATE();
     23 
     24 yi\u0065ld: 1;