Hi Greg, some googling led me to this WebKit bug report:
https://bugs.webkit.org/show_bug.cgi?id=32722 Where it is concluded that ECMAScript 5 allows reserved words as property names while ECMAScript 3 does not. So the problem is qooxdoo's parser not recognizing valid ES 5 code. I really don't know what the status of ES 5 support in qooxdoo is, so I'll talk to the experts later today and file bug reports as appropriate. As a workaround, you can of course just call the continue method using its name: cursor["continue"]() Regards, Daniel On 04/20/2011 06:14 AM, Greg Hellings wrote: > I am rolling together a library to handle my interactions with the > IndexedDB JavaScript API. One of the functions I would like to do is > iterate the elements in a DB store (like a table) and the syntax to do > that is: > > store.openCursor().onsuccess = function(event) { > var cursor = event.target.result; > if(cursor) { > // Process element > cursor.continue(); > } else { > // Previous one was the last element > } > } > > When trying to compile this, qooxdoo dies with the following error message: > Expected identifier but found reserved/CONTINUE: 'continue'. > file:database.Table, line:194, column:19 > - > ................................................................................................................................................................................................ > Compilation failed. > > I realize that "continue" is a JavaScript keyword, but it is also > valid as the name of an object member and this function is part of the > w3c API standards. Now, perhaps the standard is to blame, but this is > how it is specified and qooxdoo's disallowing of that method > invocation is a bug. > > --Greg > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
