Issue #2172 - add missing RegExpShared TraceKind declaration

This commit is contained in:
Martok 2023-08-06 18:08:59 +02:00 committed by roytam1
commit cd1920af58
2 changed files with 7 additions and 0 deletions

View file

@ -344,6 +344,10 @@ JS_GetTraceThingInfo(char* buf, size_t bufsize, JSTracer* trc, void* thing,
name = "object_group";
break;
case JS::TraceKind::RegExpShared:
name = "reg_exp_shared";
break;
default:
name = "INVALID";
break;

View file

@ -259,6 +259,9 @@ class RegExpShared : public gc::TenuredCell
static bool dumpBytecode(JSContext* cx, MutableHandleRegExpShared res, bool match_only,
HandleLinearString input);
#endif
public:
static const JS::TraceKind TraceKind = JS::TraceKind::RegExpShared;
};
class RegExpCompartment