mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
fix bugs found by exception scope verification (#20285)
Co-authored-by: 190n <7763597+190n@users.noreply.github.com>
This commit is contained in:
@@ -353,10 +353,9 @@ pub const Tag = enum(short) {
|
||||
return .int8;
|
||||
}
|
||||
|
||||
if (tag.isArrayLike() and value.getLength(globalObject) > 0) {
|
||||
return Tag.fromJS(globalObject, value.getIndex(globalObject, 0));
|
||||
if (tag.isArrayLike() and try value.getLength(globalObject) > 0) {
|
||||
return Tag.fromJS(globalObject, try value.getIndex(globalObject, 0));
|
||||
}
|
||||
if (globalObject.hasException()) return error.JSError;
|
||||
|
||||
// Ban these types:
|
||||
if (tag == .NumberObject) {
|
||||
|
||||
Reference in New Issue
Block a user