[ALOY-499] Generated code contains undefined objects when a comma not needed is present on tss files
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-06T21:32:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.1.0, 2013 Sprint 03 |
Components | XML |
Labels | n/a |
Reporter | César Cavazos |
Assignee | Tony Lukasavage |
Created | 2013-02-06T00:10:28.000+0000 |
Updated | 2013-05-01T14:56:27.000+0000 |
Description
Bug
If there is a comma present at the end of an object and it's not needed then the generated code contains an extra property defined as: "undefined": undefined Removing the comma resolves the issues.Test case
Sample code: https://gist.github.com/ccavazos/edf7b43f7195fb9aa88dComments
- Tony Lukasavage 2013-02-06
Additional note, this only seems to happen on nested object, like
font
or some of the complex styles listed in the sample. - Tony Lukasavage 2013-02-06 Grammar updated and parser regenerated to eliminate the unnecessary undefined properties