Changeset 14695 for trunk/FACT++/src
- Timestamp:
- 11/25/12 13:35:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14694 r14695 1315 1315 return ThrowException(String::New("toSky must not be called with more than one argument.")); 1316 1316 1317 if (args.Length()==1 && !args[0]->IsDate()) 1318 return ThrowException(String::New("Argument must be a Date")); 1319 1317 1320 ln_hrz_posn hrz; 1318 1321 hrz.alt = 90-GetDataMember(args, "zd"); … … 1350 1353 return ThrowException(String::New("toLocal must not be called with more than one argument.")); 1351 1354 1355 if (args.Length()==1 && !args[0]->IsDate()) 1356 return ThrowException(String::New("Argument must be a Date")); 1357 1352 1358 ln_equ_posn equ; 1353 1359 equ.ra = GetDataMember(args, "ra")*15; … … 1414 1420 if (args.Length()>1) 1415 1421 return ThrowException(String::New("Moon constructor must not be called with more than one argument.")); 1422 1423 if (args.Length()==1 && !args[0]->IsDate()) 1424 return ThrowException(String::New("Argument must be a Date")); 1416 1425 1417 1426 HandleScope handle_scope; … … 1553 1562 if (args.Length()>2) 1554 1563 return ThrowException(String::New("Sun.horizon must not be called with one or two arguments.")); 1564 1565 if (args.Length()==2 && !args[1]->IsDate()) 1566 return ThrowException(String::New("Second argument must be a Date")); 1555 1567 1556 1568 HandleScope handle_scope; … … 1607 1619 if (args.Length()>1) 1608 1620 return ThrowException(String::New("Moon.horizon must not be called with one argument.")); 1621 1622 if (args.Length()==1 && !args[0]->IsDate()) 1623 return ThrowException(String::New("Argument must be a Date")); 1609 1624 1610 1625 HandleScope handle_scope;
Note:
See TracChangeset
for help on using the changeset viewer.