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

@@ -376,7 +376,7 @@ pub const FSWatcher = struct {
verbose = verbose_.toBoolean();
}
if (options_or_callable.fastGet(ctx, .encoding)) |encoding_| {
if (try options_or_callable.fastGet(ctx, .encoding)) |encoding_| {
encoding = try JSC.Node.Encoding.assert(encoding_, ctx, encoding);
}