Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8011086 Specification fails (outside test262)
  3. JDK-8015345

Function("}),print('test'),({") should throw SyntaxError

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • None
    • b94
    • generic
    • generic
    • Verified

      Function constructor should make sure that the passed arguments confirm to argument name syntax and function body syntax. If not, SyntaxError should result.

        Function("}),print('test'),({")

      should result in SyntaxError.

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

              Created:
              Updated:
              Resolved: