Is There Object.watch For All Properties / A Shim For __nosuchmethod__ Available?
Solution 1:
Nope, at least, not for Chrome. __noSuchMethod__
only works for functions, anyway.
Proxy
support is under discussion for the next version of ECMAScript (Harmony), and even already implemented in SpiderMonkey. Until then, you're out of luck, I'm afraid.
— there was a request to implement __noSuchMethod__
in V8 but it was refused. Requests to implement Proxy haven't been any more successful: 633 was merged as duplicate, and the Chromium team doesn't care much about implementing Proxy support.
Solution 2:
Yeah, I want that too. So do many, many other people. Isn't going to happen. Ever. Chrome (V8) follows webkit in terms of its JS API. __noSuchMethod__
is a non-standard event created by Mozilla and has been officially rejected from ECMAScript (JavaScript).
In other words, it will never exist :'(
(or if it does, it will be after much arguing and it won't be any time soon)
Post a Comment for "Is There Object.watch For All Properties / A Shim For __nosuchmethod__ Available?"