diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 19:23:13 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:23 -0400 |
commit | 2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af (patch) | |
tree | b000db4b2f39757464a6607e34b0eb5132e72e39 /js/src/jsobj.cpp | |
parent | af6768fb1f2e44b0bfe4136c79d8031028d073b1 (diff) | |
download | uxp-2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af.tar.gz |
1320408 - Part 5: Change JSObject::constructorDisplayAtom to static method.
Diffstat (limited to 'js/src/jsobj.cpp')
-rw-r--r-- | js/src/jsobj.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 0c7c9bc32c..ce2f9a6142 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -3849,11 +3849,10 @@ displayAtomFromObjectGroup(ObjectGroup& group) return script->function()->displayAtom(); } -bool -JSObject::constructorDisplayAtom(JSContext* cx, js::MutableHandleAtom name) +/* static */ bool +JSObject::constructorDisplayAtom(JSContext* cx, js::HandleObject obj, js::MutableHandleAtom name) { - RootedObject self(cx, this); // Temporary change. - ObjectGroup *g = JSObject::getGroup(cx, self); + ObjectGroup *g = JSObject::getGroup(cx, obj); if (!g) return false; |