On 3/6/2015 10:44 AM, Jan De Mooij wrote:
We've deprecated [0] __noSuchMethod__ [1] support in SpiderMonkey. It's a
non-standard feature that no other engine supports, and it's been hindering
ongoing performance work as __noSuchMethod__ is not trivial to support in
the JITs.
I've posted patches to convert all in-tree and add-on SDK uses and we'll
add a console warning when __noSuchMethod__ is used [2].
There's no drop-in replacement, but in most cases you can either use ES6
proxies or rewrite the code to add the properties you care about manually.
I don't know when/if we can remove this feature from SpiderMonkey, but
we'll likely wait at least a few months to avoid breaking too many add-ons.
In the meantime, please don't add or review code that uses __noSuchMethod__.
FWIW, I've found that both the uses in comm-central are basically poor
man's reimplementation of ES6 classes, so I don't think it's worth
removing this code until ES6 classes land.
--
Joshua Cranmer
Thunderbird and DXR developer
Source code archæologist
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform