Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8073733

TypeError messages with "call" and "new" could be improved

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • core-libs
    • b77
    • generic
    • generic

    Backports

      Description

        var obj = { };
        obj.foo();


        x.js:2 TypeError: Cannot call undefined


        Instead it'd be a nice debugging feature, if TypeError message looked someting like

        x.js:2 TypeError: Cannot call "foo" that has undefined value

        or even

        x.js:2 TypeError: Cannot call "obj.foo" that has undefined value

        Similar TypeError message improvement on "new" may be done as well.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: