It should be possible to write: JS::PersistentRootedValue foo(cx); foo.setObject(...);
I see that RootedValue inherits ValueOperations through the specialization of RootedBase in Value.h. Doing something analogous here ('PersistentRootedBase', perhaps?) seems like it would be appropriate. I don't have time at the moment to do it myself, but I'd gladly review a patch.
This should not transitively block us from closing Exact Rooting. Moving it to GC.stability for now, although it's not a great fit there.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1107639
You need to log in before you can comment on or make changes to this bug.