Ignore:
Timestamp:
05/23/13 11:08:38 (11 years ago)
Author:
tbretz
Message:
Added console.warn to print a highlighted message to the ocnsole.
File:
1 edited

Legend:

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

    r15430 r16071  
    677677        if (*str)
    678678            JsOut(*str);
     679    }
     680    return Undefined();
     681}
     682
     683Handle<Value> InterpreterV8::FuncWarn(const Arguments& args)
     684{
     685    for (int i=0; i<args.Length(); i++)
     686    {
     687        const String::AsciiValue str(args[i]);
     688        if (*str)
     689            JsWarn(*str);
    679690    }
    680691    return Undefined();
     
    24202431    Handle<ObjectTemplate> console = ObjectTemplate::New();
    24212432    console->Set(String::New("out"), FunctionTemplate::New(WrapOut), ReadOnly);
     2433    console->Set(String::New("warn"), FunctionTemplate::New(WrapWarn), ReadOnly);
    24222434
    24232435    Handle<ObjectTemplate> onchange = ObjectTemplate::New();
Note: See TracChangeset for help on using the changeset viewer.