Changeset 14630 for trunk/FACT++


Ignore:
Timestamp:
11/16/12 23:19:19 (12 years ago)
Author:
tbretz
Message:
Fixed the HandleScope in the astrometry functions.
File:
1 edited

Legend:

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

    r14629 r14630  
    511511    return handle_scope.Close(Boolean::New(true));
    512512}
     513
    513514Handle<Value> InterpreterV8::FuncDbQuery(const Arguments &args)
    514515{
     
    12721273
    12731274    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));
    12771276}
    12781277
     
    13071306
    13081307    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));
    13101309}
    13111310
     
    13391338
    13401339    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));
    13421341}
    13431342
     
    13841383    This->Set(String::New("time"),    date,                    ReadOnly);
    13851384
    1386     return This;
    1387 
    1388     //return handle_scope.Close(ConstructSky(equ.ra/15, equ.dec, date, true));
     1385    return handle_scope.Close(This);
    13891386}
    13901387
     
    14041401
    14051402    // ----------------------------
     1403
     1404    HandleScope handle_scope;
    14061405
    14071406    Handle<Object> This = args.This();
     
    14281427        This->Set(String::New("time"), args[2], ReadOnly);
    14291428
    1430     return This;
     1429    return handle_scope.Close(This);
    14311430}
    14321431
     
    14471446
    14481447    // --------------------
     1448
     1449    HandleScope handle_scope;
    14491450
    14501451    Handle<Object> This = args.This();
     
    14711472        This->Set(String::New("time"), args[2], ReadOnly);
    14721473
    1473     return This;
    1474 
    1475     // ----------------------
     1474    return handle_scope.Close(This);
    14761475}
    14771476#endif
Note: See TracChangeset for help on using the changeset viewer.