mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user