summaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2023-01-28 19:32:24 +0800
committerJob Bautista <jobbautista9@protonmail.com>2023-01-28 19:32:24 +0800
commit5732cf1f17c07adb0cface7078c38e38d2f2d12c (patch)
tree3759839a6e575e08e2b46968ebd437e684252822 /js/src
parent40ef2a5756de0929d79cc9646697d718c56d7934 (diff)
downloaduxp-5732cf1f17c07adb0cface7078c38e38d2f2d12c.tar.gz
Issue #2083 - Follow-up: RegExpShared::source should be a GCPtr.
A hangover from before RegExpShared was a GC thing, as noted by m-c 1399928.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/vm/RegExpObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/RegExpObject.h b/js/src/vm/RegExpObject.h
index 28adbb36fc..4f35908087 100644
--- a/js/src/vm/RegExpObject.h
+++ b/js/src/vm/RegExpObject.h
@@ -128,7 +128,7 @@ class RegExpShared : public gc::TenuredCell
};
/* Source to the RegExp, for lazy compilation. */
- HeapPtr<JSAtom*> source;
+ GCPtr<JSAtom*> source;
RegExpFlag flags;
bool canStringMatch;