Changeset 15349 for trunk


Ignore:
Timestamp:
04/15/13 20:57:20 (12 years ago)
Author:
tbretz
Message:
Added Shebang (#!) support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r15272 r15349  
    704704        if ((fin.fail() && !fin.eof()) || fin.bad())
    705705            return ThrowException(String::New(strerror(errno)));
     706
     707        if (buffer[0]=='#' && buffer[1]=='!')
     708            buffer.insert(0, "//");
    706709
    707710        const Handle<Value> rc = ExecuteCode(buffer, *file);
Note: See TracChangeset for help on using the changeset viewer.