tor-browser

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

eval-indirect.js (504B)


      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. (indirect eval)
      8 info: |
      9    HashbangComment::
     10      #! SingleLineCommentChars[opt]
     11 features: [hashbang]
     12 ---*/
     13 
     14 assert.sameValue((0, eval)('#!\n'), undefined);
     15 assert.sameValue((0, eval)('#!\n1'), 1)
     16 assert.sameValue((0, eval)('#!2\n'), undefined);
     17 
     18 reportCompare(0, 0);