diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 19:20:00 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:22 -0400 |
commit | af6768fb1f2e44b0bfe4136c79d8031028d073b1 (patch) | |
tree | 56268abe6db8edf94a2c14c61b27e6b19b6c92c9 /js/src/jsobj.cpp | |
parent | c2b1e70b763660da2a41a826b4049360090ff373 (diff) | |
download | UXP-af6768fb1f2e44b0bfe4136c79d8031028d073b1.tar UXP-af6768fb1f2e44b0bfe4136c79d8031028d073b1.tar.gz UXP-af6768fb1f2e44b0bfe4136c79d8031028d073b1.tar.lz UXP-af6768fb1f2e44b0bfe4136c79d8031028d073b1.tar.xz UXP-af6768fb1f2e44b0bfe4136c79d8031028d073b1.zip |
1320408 - Part 4: Change JSObject::getGroup to static method.
Diffstat (limited to 'js/src/jsobj.cpp')
-rw-r--r-- | js/src/jsobj.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index afaf24abd..0c7c9bc32 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -1489,9 +1489,9 @@ JSObject::swap(JSContext* cx, HandleObject a, HandleObject b) AutoCompartment ac(cx, a); - if (!a->getGroup(cx)) + if (!JSObject::getGroup(cx, a)) oomUnsafe.crash("JSObject::swap"); - if (!b->getGroup(cx)) + if (!JSObject::getGroup(cx, b)) oomUnsafe.crash("JSObject::swap"); /* @@ -3852,7 +3852,8 @@ displayAtomFromObjectGroup(ObjectGroup& group) bool JSObject::constructorDisplayAtom(JSContext* cx, js::MutableHandleAtom name) { - ObjectGroup *g = getGroup(cx); + RootedObject self(cx, this); // Temporary change. + ObjectGroup *g = JSObject::getGroup(cx, self); if (!g) return false; |