Skip to content
Snippets Groups Projects
  1. Apr 28, 2018
  2. Jan 05, 2018
    • Mike Pennisi's avatar
      Rename negative test "phase" for parsing · 13611037
      Mike Pennisi authored
      Early errors may result from parsing the source text of a test file, but
      they may also result from parsing some other source text as referenced
      through the ES2015 module syntax. The latter form of early error is not
      necessarily detectable by ECMAScript parsers, however. Because of this,
      the label "early" is not sufficiently precise for all Test262 consumers
      to correctly interpret all tests.
      
      Update the "phase" name of "early" to "parse" for all those negative
      tests that describe errors resulting from parsing of the file's source
      text directly. A forthcoming commit will update the remaining tests to
      use a "phase" name that is more specific to module resolution.
      13611037
  3. Jun 28, 2017
  4. 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
  5. Mar 29, 2016
  6. Mar 11, 2016
  7. Feb 19, 2016
    • Mike Pennisi's avatar
      Add test for strict mode of module code · 82abd59f
      Mike Pennisi authored
      82abd59f
    • Mike Pennisi's avatar
      Add tests for position of module declarations · a6dcd0dc
      Mike Pennisi authored
      Assert that ImportDeclaration and ExportDeclaration match only the
      ModuleItem symbol.
      
      According to the definition of HostResolveImportedModule, it is
      acceptable for an implementation to throw a SyntaxError in the event
      that a requested module can neither be found nor created:
      
      > If a Module Record corresponding to the pair referencingModule,
      > specifier does not exist or cannot be created, an exception must be
      > thrown.
      
      In order to reliably detect a SyntaxError in response to the correct
      interpretation of the grammar (and not a SyntaxError from an *incorrect*
      interpretation of the grammar followed by a failure to resolve the
      requested module), the ModuleSpecifier of ExportDeclarations should
      describe a valid resource.
      a6dcd0dc
Loading