summaryrefslogtreecommitdiffstats
path: root/js/src/vm/RegExpObject.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 23:29:58 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:26 -0400
commitcaf39feeeb457ffb143110826a0220211c00afb6 (patch)
tree3734dd19f40a0450c4dca46e8dd8de01ff1955d0 /js/src/vm/RegExpObject.cpp
parent3a5176f4b25a2b90cefe14eb2c2de57113dc21ac (diff)
downloadUXP-caf39feeeb457ffb143110826a0220211c00afb6.tar
UXP-caf39feeeb457ffb143110826a0220211c00afb6.tar.gz
UXP-caf39feeeb457ffb143110826a0220211c00afb6.tar.lz
UXP-caf39feeeb457ffb143110826a0220211c00afb6.tar.xz
UXP-caf39feeeb457ffb143110826a0220211c00afb6.zip
1320408 - Part 15: Change NativeObject::addDataProperty to static method.
Diffstat (limited to 'js/src/vm/RegExpObject.cpp')
-rw-r--r--js/src/vm/RegExpObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/vm/RegExpObject.cpp b/js/src/vm/RegExpObject.cpp
index 6bd7de301..1ea67d0bd 100644
--- a/js/src/vm/RegExpObject.cpp
+++ b/js/src/vm/RegExpObject.cpp
@@ -300,7 +300,8 @@ RegExpObject::assignInitialShape(ExclusiveContext* cx, Handle<RegExpObject*> sel
JS_STATIC_ASSERT(LAST_INDEX_SLOT == 0);
/* The lastIndex property alone is writable but non-configurable. */
- return self->addDataProperty(cx, cx->names().lastIndex, LAST_INDEX_SLOT, JSPROP_PERMANENT);
+ return NativeObject::addDataProperty(cx, self, cx->names().lastIndex, LAST_INDEX_SLOT,
+ JSPROP_PERMANENT);
}
void