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

Appending many times to a string in JavaScript results in crash

    XMLWordPrintable

Details

    • ead3da17e7a91a5e6adf7b03e651950378d1326c

    Description

      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"
              }
          }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes