Skip to content
Snippets Groups Projects
exp-operator-syntax-error-logical-not-unary-expression-base.js 419 B
Newer Older
  • Learn to ignore specific revisions
  • // Copyright (C) 2016 Rick Waldron. All rights reserved.
    // This code is governed by the BSD license found in the LICENSE file.
    
    /*---
    author: Rick Waldron
    
    Rick Waldron's avatar
    Rick Waldron committed
    esid: sec-unary-operators
    
    Rick Waldron's avatar
    Rick Waldron committed
    description: Exponentiation Expression syntax error, `!` UnaryExpression
    info: >
    
      ExponentiationExpression :
        UnaryExpression
        ...
    
      UnaryExpression :
        ...
        `!` UnaryExpression
        ...
    
    negative: SyntaxError
    ---*/
    !1 ** 2;