Changeset 14088 for trunk


Ignore:
Timestamp:
06/05/12 18:49:48 (12 years ago)
Author:
tbretz
Message:
Made 'command line' arguments ReadOnly
File:
1 edited

Legend:

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

    r14084 r14088  
    313313    for (auto it=map.begin(); it!=map.end(); it++)
    314314        args->Set(String::New(it->first.c_str()), String::New(it->second.c_str()));
    315     context->Global()->Set(String::New("$"),   args);
    316     context->Global()->Set(String::New("arg"), args);
     315    context->Global()->Set(String::New("$"),   args, ReadOnly);
     316    context->Global()->Set(String::New("arg"), args, ReadOnly);
    317317
    318318    JsStart(filename);
Note: See TracChangeset for help on using the changeset viewer.