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/vm/ObjectGroup.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/vm/ObjectGroup.cpp')
-rw-r--r-- | js/src/vm/ObjectGroup.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/vm/ObjectGroup.cpp b/js/src/vm/ObjectGroup.cpp index f3e748a1d..6e9000894 100644 --- a/js/src/vm/ObjectGroup.cpp +++ b/js/src/vm/ObjectGroup.cpp @@ -283,12 +283,13 @@ JSObject::splicePrototype(JSContext* cx, const Class* clasp, Handle<TaggedProto> return false; // Force type instantiation when splicing lazy group. - RootedObjectGroup group(cx, self->getGroup(cx)); + RootedObjectGroup group(cx, JSObject::getGroup(cx, self)); if (!group) return false; RootedObjectGroup protoGroup(cx, nullptr); if (proto.isObject()) { - protoGroup = proto.toObject()->getGroup(cx); + RootedObject protoObj(cx, proto.toObject()); + protoGroup = JSObject::getGroup(cx, protoObj); if (!protoGroup) return false; } |