diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-22 21:07:48 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-22 21:07:48 +0100 |
commit | b1cd96989bb5107f83895c2320e0046d84b448ab (patch) | |
tree | 468d90d65d7cb753f0e99fada6bc6798a3ff0e31 /js/src/jsstr.cpp | |
parent | a7888b8cf20691a4090715ab9b055ec3cb75f5e8 (diff) | |
download | uxp-b1cd96989bb5107f83895c2320e0046d84b448ab.tar.gz |
Revert 1320408 part 15: Make addDataProperty static
Diffstat (limited to 'js/src/jsstr.cpp')
-rw-r--r-- | js/src/jsstr.cpp | 4 |
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* |