tor-browser

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

eval.js (487B)


      1 // Copyright (C) 2019 Leo Balter. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: pending
      6 description: >
      7    Hashbang comments should be available in Script evaluator contexts. (direct eval)
      8 info: |
      9    HashbangComment::
     10      #! SingleLineCommentChars[opt]
     11 features: [hashbang]
     12 ---*/
     13 
     14 assert.sameValue(eval('#!\n'), undefined);
     15 assert.sameValue(eval('#!\n1'), 1)
     16 assert.sameValue(eval('#!2\n'), undefined);
     17 
     18 reportCompare(0, 0);