summaryrefslogtreecommitdiff
path: root/js/src/jsstr.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-22 21:07:48 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-02-22 21:07:48 +0100
commitb1cd96989bb5107f83895c2320e0046d84b448ab (patch)
tree468d90d65d7cb753f0e99fada6bc6798a3ff0e31 /js/src/jsstr.cpp
parenta7888b8cf20691a4090715ab9b055ec3cb75f5e8 (diff)
downloaduxp-b1cd96989bb5107f83895c2320e0046d84b448ab.tar.gz
Revert 1320408 part 15: Make addDataProperty static
Diffstat (limited to 'js/src/jsstr.cpp')
-rw-r--r--js/src/jsstr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp
index 3964ab84e5..a482263e31 100644
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -2906,8 +2906,8 @@ StringObject::assignInitialShape(ExclusiveContext* cx, Handle<StringObject*> obj
{
MOZ_ASSERT(obj->empty());
- return NativeObject::addDataProperty(cx, obj, cx->names().length, LENGTH_SLOT,
- JSPROP_PERMANENT | JSPROP_READONLY);
+ return obj->addDataProperty(cx, cx->names().length, LENGTH_SLOT,
+ JSPROP_PERMANENT | JSPROP_READONLY);
}
JSObject*