mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
implement "nodeLinker": "isolated" in bun install (#20440)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
committed by
Meghan Denny
parent
6eb0a4980a
commit
2a2bf27df1
@@ -3,6 +3,7 @@ const bun = @import("bun");
|
||||
const assert = bun.assert;
|
||||
const mem = std.mem;
|
||||
const testing = std.testing;
|
||||
const OOM = bun.OOM;
|
||||
|
||||
/// An array that efficiently tracks which elements are in use.
|
||||
/// The pointers are intended to be stable
|
||||
@@ -114,7 +115,7 @@ pub fn HiveArray(comptime T: type, comptime capacity: u16) type {
|
||||
return self.allocator.create(T) catch bun.outOfMemory();
|
||||
}
|
||||
|
||||
pub fn tryGet(self: *This) !*T {
|
||||
pub fn tryGet(self: *This) OOM!*T {
|
||||
if (comptime capacity > 0) {
|
||||
if (self.hive.get()) |value| {
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user