mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
bun run zig-format
This commit is contained in:
committed by
github-actions[bot]
parent
1802c79142
commit
4b305265bb
@@ -15,7 +15,7 @@ pub const JSObject = extern struct {
|
||||
}
|
||||
|
||||
/// Non-objects will be runtime-coerced to objects.
|
||||
///
|
||||
///
|
||||
/// For cells this is `toObjectSlow`, for other types it's `toObjectSlowCase`.
|
||||
pub fn fromJS(value: JSValue, globalThis: JSValue) *JSObject {
|
||||
return JSValue.toObject(value, globalThis);
|
||||
@@ -129,7 +129,6 @@ pub const JSObject = extern struct {
|
||||
}
|
||||
extern fn JSC__JSObject__getIfPropertyExistsImpl(object: *JSObject, global: *JSGlobalObject, ptr: [*]const u8, len: u32) JSValue;
|
||||
|
||||
|
||||
pub fn fastGetWithError(this: *JSObject, global: *JSGlobalObject, builtin_name: JSValue.BuiltinName) bun.JSError!?JSValue {
|
||||
return switch (JSC__JSObject__fastGet(this, global, @intFromEnum(builtin_name))) {
|
||||
.zero => error.JSError,
|
||||
|
||||
Reference in New Issue
Block a user