mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
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:
@@ -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", .{});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user