1320408 - Part 15: Change NativeObject::addDataProperty to static method.

This commit is contained in:
Gaming4JC 2019-06-08 23:29:58 -04:00 • committed by Roy Tam
commit a2451c8234
6 changed files with 21 additions and 21 deletions

View file

@ -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