Skip to content
Snippets Groups Projects
  1. Mar 09, 2016
    • Mike Pennisi's avatar
      Add tests for `debugger` statement · 4f5a8674
      Mike Pennisi authored
      The runtime semantics of this statement are host-defined and therefore
      untestable, but the statement's affect on the formal grammar should be
      consistent across all implementations.
      4f5a8674
  2. Feb 19, 2016
    • 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