Changeset 73377 in webkit


Ignore:
Timestamp:
Dec 6, 2010 10:46:33 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-06 John Tantalo <john.tantalo@gmail.com>

Reviewed by Geoffrey Garen.

jsc does not ignore shebang
https://bugs.webkit.org/show_bug.cgi?id=49576

  • jsc.cpp: (fillBufferWithContentsOfFile):
    • translate shebang into a valid JavaScript comment so the lexer ignores it
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r73342 r73377  
     12010-12-06  John Tantalo  <john.tantalo@gmail.com>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        jsc does not ignore shebang
     6        https://bugs.webkit.org/show_bug.cgi?id=49576
     7
     8        * jsc.cpp:
     9        (fillBufferWithContentsOfFile):
     10          - translate shebang into a valid JavaScript comment so the lexer ignores it
     11
    1122010-12-05  Adam Roben  <aroben@apple.com>
    213
  • trunk/JavaScriptCore/jsc.cpp

    r72842 r73377  
    562562    buffer[bufferSize] = '\0';
    563563
     564    if (buffer[0] == '#' && buffer[1] == '!')
     565        buffer[0] = buffer[1] = '/';
     566
    564567    return true;
    565568}
Note: See TracChangeset for help on using the changeset viewer.