Bug 984146 - Prototype mutation makes code run slowly

https://bugzilla.mozilla.org/show_bug.cgi?id=984146