- Timestamp:
- 11/20/12 10:25:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14663 r14665 306 306 const State rc = JsState(*str); 307 307 if (rc.index<=-256) 308 return Object::New();308 return Undefined(); 309 309 310 310 HandleScope handle_scope; 311 311 312 Handle<ObjectTemplate> obj = ObjectTemplate::New(); 313 obj->Set(String::New("index"), Integer::New(rc.index), ReadOnly); 314 obj->Set(String::New("name"), String::New(rc.name.c_str()), ReadOnly); 312 Handle<Object> obj = Object::New(); 313 314 obj->Set(String::New("server"), String::New(*str), ReadOnly); 315 obj->Set(String::New("index"), Integer::New(rc.index), ReadOnly); 316 obj->Set(String::New("name"), String::New(rc.name.c_str()), ReadOnly); 315 317 316 318 const Local<Value> date = Date::New(rc.time.JavaDate()); … … 318 320 obj->Set(String::New("time"), date); 319 321 320 return handle_scope.Close(obj ->NewInstance());322 return handle_scope.Close(obj); 321 323 } 322 324
Note:
See TracChangeset
for help on using the changeset viewer.