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