mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
Implement --drop (#14492)
Co-authored-by: dave caruso <me@paperdave.net>
This commit is contained in:
@@ -695,7 +695,7 @@ pub const ByteRangeMapping = struct {
|
||||
return .zero;
|
||||
};
|
||||
|
||||
var str = bun.String.createUTF8(mutable_str.toOwnedSliceLeaky());
|
||||
var str = bun.String.createUTF8(mutable_str.slice());
|
||||
defer str.deref();
|
||||
return str.toJS(globalThis);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user