tor-browser

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

getter-body-strict-outside-strict.js (493B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (c) 2012 Ecma International.  All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 es5id: 11.1.5_6-2-1-s
      7 description: >
      8    Strict Mode - SyntaxError is thrown when an assignment to a
      9    reserved word or a future reserved word is contained in strict code
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 flags: [onlyStrict]
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 void {
     19  get x() {
     20    public = 42;
     21  }
     22 };