tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

syntax-declaration-no-line-terminator.js (453B)


      1 // Copyright 2016 Microsoft, Inc. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 author: Brian Terlson <brian.terlson@microsoft.com>
      6 esid: pending
      7 description: Async function declarations cannot have a line break after `async`
      8 info: Reference error is thrown due to looking up async in strict mode
      9 ---*/
     10 assert.throws(ReferenceError, function() {
     11  async
     12  function foo() {}
     13 });
     14 
     15 reportCompare(0, 0);