+4
−4
Loading
We already suppress GC for part of this, but not for the part where we call JSObject::setIsUsedAsPrototype. This can GC (which was surprising to me) and so we can sweep before the pre-write barrier which comes after this. The simplest and safest thing is to suppress GC for the whole method. Differential Revision: https://phabricator.services.mozilla.com/D209813