You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let abBuf = Buffer.alloc(2, "ab"); // abBuf set to Buffer(2) [Uint8Array] [ 97, 98 ]
let aBuf = Buffer.alloc(1, "ab"); // aBuf set to Buffer(1) [Uint8Array] [ 97 ]
let okBuf = Buffer.alloc(9, abBuf); // okBuf set to Buffer (9) [Uint8Array] [ 97, 98, 97, ..., 98, 97 ]
let x = Buffer.alloc(1, abBuf); // quit after a long idle
What is the expected behavior?
Buffer.alloc(1, abBuf) in the sample code above should produce the same result as Buffer.alloc(1, "ab"), ie, Buffer(1) [Uint8Array] [ 97 ]
What do you see instead?
"bun repl" quit after a mysterious long idle. Memory usage of bun shoot up to over 14G (ie, almost used up all my memory). Repeating this again, an alert pops up and Terminal application is enforced to quit.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.0.17+5e60861c3
What platform is your computer?
Darwin 23.3.0 arm64 arm
What steps can reproduce the bug?
bun repl
What is the expected behavior?
Buffer.alloc(1, abBuf) in the sample code above should produce the same result as Buffer.alloc(1, "ab"), ie, Buffer(1) [Uint8Array] [ 97 ]
What do you see instead?
"bun repl" quit after a mysterious long idle. Memory usage of bun shoot up to over 14G (ie, almost used up all my memory). Repeating this again, an alert pops up and Terminal application is enforced to quit.
Additional information
No response
The text was updated successfully, but these errors were encountered: