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

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

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: