tor-browser

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

function-body.js (496B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2019 Leo Balter. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: pending
      7 description: >
      8    Hashbang comments should only be allowed at the start of source texts and should not be allowed within function bodies.
      9 info: |
     10    HashbangComment::
     11      #! SingleLineCommentChars[opt]
     12 negative:
     13  phase: parse
     14  type: SyntaxError
     15 features: [hashbang]
     16 ---*/
     17 
     18 $DONOTEVALUATE();
     19 
     20 function fn() {#!
     21 }