fastGet can throw (#19506)

Co-authored-by: Meghan Denny <meghan@bun.sh>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
pfg
2025-05-14 22:14:20 -07:00
committed by GitHub
parent 6090833da6
commit a7b46ebbfe
20 changed files with 93 additions and 92 deletions

View File

@@ -3847,7 +3847,7 @@ pub fn handleTemplateValue(
return;
}
if (template_value.implementsToString(globalThis)) {
if (try template_value.implementsToString(globalThis)) {
if (!try builder.appendJSValueStr(template_value, true)) {
return globalThis.throw("Shell script string contains invalid UTF-16", .{});
}