Changeset 15150
- Timestamp:
- 03/25/13 09:52:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r15143 r15150 330 330 return ThrowException(String::New("Argument 2 not an int32 and not a string.")); 331 331 332 if (args.Length()==3 && !args[2]->IsInt32() && !args[2]->Is Null())332 if (args.Length()==3 && !args[2]->IsInt32() && !args[2]->IsUndefined()) 333 333 return ThrowException(String::New("Argument 3 not an int32 and not null.")); 334 334 … … 337 337 338 338 const string index = args[1]->IsInt32() ? "s.index" : "s.name"; 339 const bool timeout = args.Length()==3 && !args[2]->Is Null();339 const bool timeout = args.Length()==3 && !args[2]->IsUndefined(); 340 340 const string arg0 = *String::AsciiValue(args[0]); 341 341 const string state = args[1]->IsString() ? *String::AsciiValue(args[1]) : ""; … … 368 368 "})('"+arg0+"',"+arg1; 369 369 if (timeout) 370 code += "," + (args[2]->Is Null()?"undefined":to_string(args[2]->Int32Value()));370 code += "," + (args[2]->IsUndefined()?"undefined":to_string(args[2]->Int32Value())); 371 371 code += ");"; 372 372
Note:
See TracChangeset
for help on using the changeset viewer.