Changeset 14630
- Timestamp:
- 11/16/12 23:19:19 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14629 r14630 511 511 return handle_scope.Close(Boolean::New(true)); 512 512 } 513 513 514 Handle<Value> InterpreterV8::FuncDbQuery(const Arguments &args) 514 515 { … … 1272 1273 1273 1274 Handle<Value> arg[] = { Number::New(equ.ra/15), Number::New(equ.dec), date }; 1274 return fTemplateSky->GetFunction()->NewInstance(3, arg); 1275 1276 //return handle_scope.Close(ConstructSky(equ.ra/15, equ.dec, date)); 1275 return handle_scope.Close(fTemplateSky->GetFunction()->NewInstance(3, arg)); 1277 1276 } 1278 1277 … … 1307 1306 1308 1307 Handle<Value> arg[] = { Number::New(90-hrz.alt), Number::New(hrz.az), date }; 1309 return fTemplateLocal->GetFunction()->NewInstance(3, arg);1308 return handle_scope.Close(fTemplateLocal->GetFunction()->NewInstance(3, arg)); 1310 1309 } 1311 1310 … … 1339 1338 1340 1339 Handle<Value> arg[] = { Number::New(90-hrz.alt), Number::New(hrz.az), date }; 1341 return fTemplateLocal->GetFunction()->NewInstance(3, arg);1340 return handle_scope.Close(fTemplateLocal->GetFunction()->NewInstance(3, arg)); 1342 1341 } 1343 1342 … … 1384 1383 This->Set(String::New("time"), date, ReadOnly); 1385 1384 1386 return This; 1387 1388 //return handle_scope.Close(ConstructSky(equ.ra/15, equ.dec, date, true)); 1385 return handle_scope.Close(This); 1389 1386 } 1390 1387 … … 1404 1401 1405 1402 // ---------------------------- 1403 1404 HandleScope handle_scope; 1406 1405 1407 1406 Handle<Object> This = args.This(); … … 1428 1427 This->Set(String::New("time"), args[2], ReadOnly); 1429 1428 1430 return This;1429 return handle_scope.Close(This); 1431 1430 } 1432 1431 … … 1447 1446 1448 1447 // -------------------- 1448 1449 HandleScope handle_scope; 1449 1450 1450 1451 Handle<Object> This = args.This(); … … 1471 1472 This->Set(String::New("time"), args[2], ReadOnly); 1472 1473 1473 return This; 1474 1475 // ---------------------- 1474 return handle_scope.Close(This); 1476 1475 } 1477 1476 #endif
Note:
See TracChangeset
for help on using the changeset viewer.