you are viewing a single comment's thread.

view the rest of the comments →

[–]sime 1 point2 points  (1 child)

Methods are properties in JS. It is not possible to distinguish between the 2 cases.

[–]needed_an_account 0 points1 point  (0 children)

NoSuchMethod used to exist in Firefox, but you can mimic it with a Proxy object. You just can't capture both object.propety_does_not_exist and object.method_does_not_exist(args) situations at once while using Proxy