Skip to content
Snippets Groups Projects
  1. Apr 07, 2017
    • Leo Balter's avatar
      Update object literal expressions for readability · 6030e4ed
      Leo Balter authored
      After @rwaldron's feedback:
      
      The purpose of the `!` operator is to evaluate an UnaryExpression,
      coerce the result to a boolean value and then return the negated
      value of that operation. But that's not what you're trying to do at
      all—you just want to evaluate the expression to the right of the
      operator, nothing more, nothing less. In this specific case, you
      don't even really care about the evaluation, the goal is write
      valid (or invalid, as the case may be) syntax that is will be
      parsed according to a specific grammar rule that requires some
      operator to signal that the thing is an expression and not a Block
      Statement.
      6030e4ed
  2. Oct 19, 2016
    • Mike Pennisi's avatar
      Re-format tests for SyntaxErrors · 7d4b1d28
      Mike Pennisi authored
      Authored via the following command:
      
         $ find test -type f -print0 | \
             xargs -0 sed \
               -i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1  phase: early\n\1  type: SyntaxError/g'
      7d4b1d28
  3. Jul 28, 2016
Loading