tor-browser

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

exp-operator-syntax-error-negate-unary-expression-base.js (519B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 Rick Waldron. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 author: Rick Waldron
      7 esid: sec-unary-operators
      8 description: Exponentiation Expression syntax error, `-` UnaryExpression
      9 info: |
     10  ExponentiationExpression :
     11    UnaryExpression
     12    ...
     13 
     14  UnaryExpression :
     15    ...
     16    `-` UnaryExpression
     17    ...
     18 features: [exponentiation]
     19 
     20 negative:
     21  phase: parse
     22  type: SyntaxError
     23 ---*/
     24 
     25 $DONOTEVALUATE();
     26 -3 ** 2;