XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • P4
    • Resolution: Fixed
    • None
    • 8
    • core-libs
    • None
    • b89
    • Verified

    Description

      "aa".split(undefined,0).length
      => should return 0 instead of 1

      "aa".split(/(a)/, 1).length
      => should return 1 instead of 2

      "abc".split("", 1).length
      => should return 1 instead of 3

      "aa".split((r = /a/, r.lastIndex = {valueOf:function(){throw 2}}, r))
      => should not throw an exception

      Attachments

        Activity

          People

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: