tor-browser

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

val-yield-strict-strict.js (425B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2013 the V8 project authors. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 
      6 /*---
      7 description: >
      8    `yield` is a reserved identifier in strict mode code and may not be used
      9    as an identifier.
     10 es6id: 12.1.1
     11 negative:
     12  phase: parse
     13  type: SyntaxError
     14 flags: [onlyStrict]
     15 ---*/
     16 
     17 $DONOTEVALUATE();
     18 
     19 var yield = 13;