mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 12:07:34 +09:00
parent
49ce6a7928
commit
d275a63a71
3 changed files with 98 additions and 59 deletions
|
|
@ -196,6 +196,12 @@ RegExpObject::trace(JSTracer* trc, JSObject* obj)
|
|||
}
|
||||
}
|
||||
|
||||
static JSObject*
|
||||
CreateRegExpPrototype(JSContext* cx, JSProtoKey key)
|
||||
{
|
||||
return cx->global()->createBlankPrototype(cx, &RegExpObject::protoClass_);
|
||||
}
|
||||
|
||||
static const ClassOps RegExpObjectClassOps = {
|
||||
nullptr, /* addProperty */
|
||||
nullptr, /* delProperty */
|
||||
|
|
@ -229,6 +235,13 @@ const Class RegExpObject::class_ = {
|
|||
&RegExpObjectClassSpec
|
||||
};
|
||||
|
||||
const Class RegExpObject::protoClass_ = {
|
||||
js_Object_str,
|
||||
JSCLASS_HAS_CACHED_PROTO(JSProto_RegExp),
|
||||
JS_NULL_CLASS_OPS,
|
||||
&RegExpObjectClassSpec
|
||||
};
|
||||
|
||||
RegExpObject*
|
||||
RegExpObject::create(ExclusiveContext* cx, const char16_t* chars, size_t length, RegExpFlag flags,
|
||||
TokenStream* tokenStream, LifoAlloc& alloc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue