Changeset 14500 for trunk/FACT++


Ignore:
Timestamp:
10/19/12 19:36:37 (12 years ago)
Author:
tbretz
Message:
Allow sleep without argument.
File:
1 edited

Legend:

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

    r14499 r14500  
    191191Handle<Value> InterpreterV8::FuncSleep(const Arguments& args)
    192192{
     193    if (args.Length()==0)
     194    {
     195        JsSleep(1);
     196        return Undefined();
     197    }
     198
    193199    if (args.Length()!=1)
    194200        return ThrowException(String::New("Number of arguments must be exactly 1."));
Note: See TracChangeset for help on using the changeset viewer.