Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11475 QtScript's patches to JavaScriptCore
  3. QTBUG-11694

[QtScript/JavaScriptCore] Throw error when RegExp constructor is passed invalid flags

    XMLWordPrintable

Details

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

    Description

      Patch: http://gitorious.org/+qtwebkit-developers/qtwebkit/qtwebkit-qtscript-integration/commit/dde214dfbe1f4cac023164318b6878d932478d80

      ECMA-262, 5th edition, 15.10.4.1: "If F contains any character other than "g", "i", or "m", or if it contains the same character more than once, then throw a SyntaxError exception."

      Patch needs testcase.

      Attached alternative patch.

      Suggested action: Create upstream bug, finish the patch. Drop the patch if it's rejected. (No major real-world JS could have depended on this behavior yet, otherwise it would have been fixed upstream already.)

      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:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes