Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.3.9, 3.4.4
-
None
Description
Structure classes use String instance methods on properties that might not be strings.
For example, current implementation:
class Property { // ... toString() { return 'p[' + this.key + '->' + this.value.substr(0, 20) + ']'; } }
Should be:
class Property { // ... toString() { return 'p[' + this.key + '->' + this.value.toString().substr(0, 20) + ']'; } }
Plus checking on null/undefined value.
Attachments
Issue Links
- links to