I need some functionality that works like Ruby's method missing
. I have searched and only found 2 ways:
- noSuchMethod: Only available to Mozilla Firefox, and I think it's deprecated or something.
- ES6 proxys: Not yet implemented in Chrome, which is a major browser, and partialy implemented in other major ones as per: https://kangax.github.io/compat-table/es6/.
I was thinking in proxies but is a major drawback if isn't supported by Chrome, and if it's not supported by chrome, probably not for NodeJS either.
Any idea how to implement this feature? maybe a library or plain JS prototyping?