Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000365 [Yate - Yet Another Telephony Engine] module minor always 2014-02-25 23:18 2014-02-26 12:06
Reporter ximik777 View Status public  
Assigned To
Priority normal Resolution open  
Status acknowledged   Product Version 4.x
Summary 0000365: Javascript
Description //// Good /////
var a = 'a';
var b = 'b';
var c = 'c';
var d = [a,b,c];


/////Bug/////
var a = 'a';
var b = 'b';
var c = 'c';
var d = [a,b + '123',c];

<JsCode:WARN> Evaluator error: Expecting operand in /var/www/.../init.js:19 at: + '123',c];
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000543)
paulc (administrator)
2014-02-26 12:06

This is one of the current limitations of the JS engine, it supports only constants and variables in initialization of [ Array ] and { Object } items.

This is fast and convenient for JSON style parsing (where only constants are allowed anyway) but limits flexibility.

- Issue History
Date Modified Username Field Change
2014-02-25 23:18 ximik777 New Issue
2014-02-26 12:06 paulc Note Added: 0000543
2014-02-26 12:06 paulc Status new => acknowledged


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker