diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 23:29:58 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:26 -0400 |
commit | caf39feeeb457ffb143110826a0220211c00afb6 (patch) | |
tree | 3734dd19f40a0450c4dca46e8dd8de01ff1955d0 /js/src/jsstr.cpp | |
parent | 3a5176f4b25a2b90cefe14eb2c2de57113dc21ac (diff) | |
download | uxp-caf39feeeb457ffb143110826a0220211c00afb6.tar.gz |
1320408 - Part 15: Change NativeObject::addDataProperty to static method.
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 850db71fe5..fdb62a6794 100644 --- a/js/src/jsstr.cpp +++ b/js/src/jsstr.cpp @@ -2905,8 +2905,8 @@ StringObject::assignInitialShape(ExclusiveContext* cx, Handle<StringObject*> obj { MOZ_ASSERT(obj->empty()); - return obj->addDataProperty(cx, cx->names().length, LENGTH_SLOT, - JSPROP_PERMANENT | JSPROP_READONLY); + return NativeObject::addDataProperty(cx, obj, cx->names().length, LENGTH_SLOT, + JSPROP_PERMANENT | JSPROP_READONLY); } JSObject* |