Skip to content
Snippets Groups Projects
  • Mike Pennisi's avatar
    7d4b1d28
    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
    History
    Re-format tests for SyntaxErrors
    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'
S7.6.1.1_A1.7.js 321 B
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: The "do" token can not be used as identifier
es5id: 7.6.1.1_A1.7
description: Checking if execution of "do=1" fails
negative:
  phase: early
  type: SyntaxError
---*/

do = 1;