How can I specify a default getter for a prototype? With default getter I mean a function that is called if obj.undefinedProperty123 is called.
obj.undefinedProperty123
I tried
Firefox it's possible with non-standard noSuchMethod:-
({__noSuchMethod__:function(){alert(1);}}).a();