Changeset 73377 in webkit for trunk/JavaScriptCore/jsc.cpp


Ignore:
Timestamp:
Dec 6, 2010, 10:46:33 AM (14 years ago)
Author:
[email protected]
Message:

2010-12-06 John Tantalo <[email protected]>

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.