Skip to content
Snippets Groups Projects
eval.js 338 B
Newer Older
  • Learn to ignore specific revisions
  • /*---
    esid: pending
    description: >
    
    Leo Balter's avatar
    Leo Balter committed
        Hashbang comments should be available in Script evaluator contexts. (direct eval)
    
    info: |
        HashbangComment::
          #! SingleLineCommentChars[opt]
    
    features: [hashbang]
    
    ---*/
    
    assert.sameValue(eval('#!\n'), undefined);
    
    assert.sameValue(eval('#!\n1'), 1)
    assert.sameValue(eval('#!2\n'), undefined);