From 6f99b97447e3e7e268c9649302a69f3d0fde6a99 Mon Sep 17 00:00:00 2001 From: roytam1 Date: Fri, 10 Mar 2023 20:27:07 +0800 Subject: [PATCH] Revert "reverting rev 22dc363c and 233802c9 for now since I got a crash in destructor of RegExpShared." This reverts commit 7faa37b7df29db8bc597f1099ba73218c51ff523. --- js/src/vm/RegExpObject.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/vm/RegExpObject.h b/js/src/vm/RegExpObject.h index 0056c6aee9..4f35908087 100644 --- a/js/src/vm/RegExpObject.h +++ b/js/src/vm/RegExpObject.h @@ -128,14 +128,14 @@ class RegExpShared : public gc::TenuredCell }; /* Source to the RegExp, for lazy compilation. */ - HeapPtr source; + GCPtr source; RegExpFlag flags; bool canStringMatch; size_t parenCount; - uint32_t numNamedCaptures_; - HeapPtr groupsTemplate_; + uint32_t numNamedCaptures_; + GCPtr groupsTemplate_; RegExpCompilation compilationArray[4];