Compare commits

...

1 Commits

Author SHA1 Message Date
Sosuke Suzuki
36f7a22cf7 Replace direct GCOwnedDataScope member access with String copy in ErrorStackTrace 2025-09-17 13:15:21 +09:00

View File

@@ -696,7 +696,7 @@ String functionName(JSC::VM& vm, JSC::JSGlobalObject* lexicalGlobalObject, const
if (!str->isEmpty()) {
setTypeFlagsIfNecessary();
return str.data;
return str;
}
}
}
@@ -711,7 +711,7 @@ String functionName(JSC::VM& vm, JSC::JSGlobalObject* lexicalGlobalObject, const
if (name && name.isString()) {
auto str = asString(name)->tryGetValueWithoutGC();
if (!str->isEmpty()) {
functionName = str.data;
functionName = str;
if (!functionName.isEmpty()) {
setTypeFlagsIfNecessary();
return functionName;