Rename non-refing Bun::toString overloads to Bun::toStringNonRef

This commit is contained in:
Ben Grant
2025-03-25 16:39:02 -07:00
parent 57381d43ed
commit a7bb4d7cb1
18 changed files with 59 additions and 53 deletions

View File

@@ -124,7 +124,7 @@ static EncodedJSValue getOwnProxyObject(JSPropertyIterator* iter, JSObject* obje
JSValue result = slot.getValue(globalObject, prop);
RETURN_IF_EXCEPTION(scope, {});
*propertyName = Bun::toString(prop.impl());
*propertyName = Bun::toStringNonRef(prop.impl());
return JSValue::encode(result);
}
@@ -148,7 +148,7 @@ extern "C" EncodedJSValue Bun__JSPropertyIterator__getNameAndValue(JSPropertyIte
JSValue result = slot.getValue(globalObject, prop);
RETURN_IF_EXCEPTION(scope, {});
*propertyName = Bun::toString(prop.impl());
*propertyName = Bun::toStringNonRef(prop.impl());
return JSValue::encode(result);
}
@@ -174,14 +174,14 @@ extern "C" EncodedJSValue Bun__JSPropertyIterator__getNameAndValueNonObservable(
JSValue result = slot.getPureResult();
RETURN_IF_EXCEPTION(scope, {});
*propertyName = Bun::toString(prop.impl());
*propertyName = Bun::toStringNonRef(prop.impl());
return JSValue::encode(result);
}
extern "C" void Bun__JSPropertyIterator__getName(JSPropertyIterator* iter, BunString* propertyName, size_t i)
{
const auto& prop = iter->properties->propertyNameVector()[i];
*propertyName = Bun::toString(prop.impl());
*propertyName = Bun::toStringNonRef(prop.impl());
}
extern "C" void Bun__JSPropertyIterator__deinit(JSPropertyIterator* iter)