Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2332

JavaScript GLV: structure element toString() should internally call toString()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.9, 3.4.4
    • 3.4.5, 3.3.10
    • javascript
    • 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

          Activity

            People

              jorgebg Jorge Bay
              jorgebg Jorge Bay
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: