Revert "reverting rev 22dc363c and 233802c9 for now since I got a crash in destructor of RegExpShared."

This reverts commit 7faa37b7df.
This commit is contained in:
roytam1 2023-03-10 20:27:07 +08:00
commit 6f99b97447

View file

@ -128,14 +128,14 @@ class RegExpShared : public gc::TenuredCell
};
/* Source to the RegExp, for lazy compilation. */
HeapPtr<JSAtom*> source;
GCPtr<JSAtom*> source;
RegExpFlag flags;
bool canStringMatch;
size_t parenCount;
uint32_t numNamedCaptures_;
HeapPtr<PlainObject*> groupsTemplate_;
uint32_t numNamedCaptures_;
GCPtr<PlainObject*> groupsTemplate_;
RegExpCompilation compilationArray[4];