Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16478 QtScript API changes for Qt 5
  3. QTBUG-16517

QScriptEngine::newRegExp() should receive flags as a bitmask rather than a string

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Invalid
    • P3: Somewhat important
    • 5.0.0
    • Qt Script
    • None

    Description

      http://doc.trolltech.com/4.7/qscriptengine.html#newRegExp-2

      The fact that the flags argument is a string is a result of adopting the same quirk as the JS RegExp constructor.
      The flags really should be flags.
      Then we also avoid having to deal with the silly case where the string contains invalid or duplicate characters (in which case the ES spec says an exception should be thrown, but not all implementations do that...).

      Attachments

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

        Activity

          People

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes