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

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

      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...).

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes