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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b77
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: