Function constructor should convert arguments to String before performing any syntax checks

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b112
    • generic
    • generic


      jjs> Function("-", {toString:function(){throw "err"}})

      Expected: throws "err"
      Actual: throws SyntaxError

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: