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

@@ -1986,7 +1986,7 @@ pub const Arguments = struct {
};
fn getEncoding(object: JSC.JSValue, globalObject: *JSC.JSGlobalObject, default: Encoding) bun.JSError!Encoding {
if (object.fastGet(globalObject, .encoding)) |value| {
if (try object.fastGet(globalObject, .encoding)) |value| {
return Encoding.assert(value, globalObject, default);
}