summaryrefslogtreecommitdiffstats
path: root/js/src/builtin
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 19:23:13 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:23 -0400
commit2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af (patch)
treeb000db4b2f39757464a6607e34b0eb5132e72e39 /js/src/builtin
parentaf6768fb1f2e44b0bfe4136c79d8031028d073b1 (diff)
downloadUXP-2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af.tar
UXP-2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af.tar.gz
UXP-2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af.tar.lz
UXP-2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af.tar.xz
UXP-2d1d2cefbbaff4b0380bfbcdab4631a1dcf142af.zip
1320408 - Part 5: Change JSObject::constructorDisplayAtom to static method.
Diffstat (limited to 'js/src/builtin')
-rw-r--r--js/src/builtin/TestingFunctions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/builtin/TestingFunctions.cpp b/js/src/builtin/TestingFunctions.cpp
index 89e3b1793..f9e4674c8 100644
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -3319,7 +3319,8 @@ GetConstructorName(JSContext* cx, unsigned argc, Value* vp)
}
RootedAtom name(cx);
- if (!args[0].toObject().constructorDisplayAtom(cx, &name))
+ RootedObject obj(cx, &args[0].toObject());
+ if (!JSObject::constructorDisplayAtom(cx, obj, &name))
return false;
if (name) {