Closed Bug 803627 Opened 13 years ago Closed 13 years ago

Compiler: entity's index is empty if you call entity.toString() a second time

Categories

(L20n :: JS Library, defect, P3)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

References

Details

Passing this.index by reference and then shifting it is not a good idea.
Props to Gandalf for catching this. Fixed here: https://github.com/l20n/l20n.js/commit/a26d8fd32c4af483dc1cf81517d6a48432d34069 I'm leaving the bug open to follow up with a testcase.
Assignee: nobody → stas
Priority: -- → P3
Target Milestone: --- → 1.0
This is partly blocked by bug 810817. The Python parser doesn't support indexes on attributes, so I can only write the testcase for entity's index.
Depends on: 810817
Depends on: 817144
Closing, I'll write the test case when I fix the test runner.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.