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.
|