tor-browser

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

setter-body-strict-inside.js (508B)


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