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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: