Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000349 [Yate - Yet Another Telephony Engine] module major always 2013-06-27 10:44 2013-07-11 12:12
Reporter folarte View Status public  
Assigned To
Priority normal Resolution open  
Status acknowledged   Product Version SVN
Summary 0000349: Javascript evaluation errors caused by parenthesis and other constructs.
Description When loading this script:
>>>>>
var dt = (new Date());
Engine.print_r(dt.getTime());
Engine.print_r((dt).getTime());
<<<<<
I get
>>>>
'' = '1645222838' (ExpOperation)
20130620144950.262321 <JsCode:WARN> Evaluator error: Function 'getTime' call failed in test1.js:3
<<<<<

In fact I'm finding all kind of weird behaviours in evaluations:
>>>
Engine.output("Start");
var s = "123";
Engine.print_r(s.length);
Engine.output("End");
>>>
Start
'' = '3' (ExpOperation)
End
<<<

But if I inline it:
>>>
Engine.output("Start");
Engine.print_r("123".length);
Engine.output("End");
>>>
Start
20130620150030.334801 <JsCode:WARN> Evaluator error: Expecting field names in test1.js:2
<<<

And, not with complete code, "123".trim() fails, using a s="123";s.trim(); succeeds, but (s).trim(); (extra parentheses) fails.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2013-06-27 10:44 folarte New Issue
2013-07-11 12:12 paulc Status new => acknowledged


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker