Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39520

Appending many times to a string in JavaScript results in crash

XMLWordPrintable

    • ead3da17e7a91a5e6adf7b03e651950378d1326c

      Adding a string many times to another string results in crash.
      Here is the function I tested with:

          function test() {
              var num = 999999
              var outputText = ""
      
              for (var i = 0; i < num; ++i) {
                  outputText += "testtest " + i + "\n"
              }
          }
      

        For Gerrit Dashboard: QTBUG-39520
        # Subject Branch Project Status CR V

            erikv Erik Verbruggen
            strahlex Alexander Rössler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes