From 233802c9abf6023d97355b7ab1a0681df50ef952 Mon Sep 17 00:00:00 2001 From: Job Bautista Date: Thu, 26 Jan 2023 15:26:01 +0800 Subject: [PATCH] Revert "Issue #1382 - RegExpShared::groupsTemplate_ cannot be a GCPtr since RegExpShared is managed by C++" This workaround has been obsoleted by the work on Issue #2083. This reverts commit bbd743608685ec77ebebe480761118db8a988253. --- js/src/vm/RegExpObject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/vm/RegExpObject.h b/js/src/vm/RegExpObject.h index 0056c6aee9..28adbb36fc 100644 --- a/js/src/vm/RegExpObject.h +++ b/js/src/vm/RegExpObject.h @@ -134,8 +134,8 @@ class RegExpShared : public gc::TenuredCell bool canStringMatch; size_t parenCount; - uint32_t numNamedCaptures_; - HeapPtr groupsTemplate_; + uint32_t numNamedCaptures_; + GCPtr groupsTemplate_; RegExpCompilation compilationArray[4];