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

This commit is contained in:
roytam1 2023-02-01 10:56:26 +08:00
commit 7faa37b7df

View file

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