mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
feat: load sourcemaps at runtime when using a bun build --target=bun bundle (#10998)
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
@@ -266,10 +266,22 @@ pub const StringImplAllocator = struct {
|
||||
};
|
||||
|
||||
pub const Tag = enum(u8) {
|
||||
/// String is not valid. Observed on some failed operations.
|
||||
/// To prevent crashes, this value acts similarly to .Empty (such as length = 0)
|
||||
Dead = 0,
|
||||
/// String is backed by a WTF::StringImpl from JavaScriptCore.
|
||||
/// Can be in either `latin1` or `utf16le` encodings.
|
||||
WTFStringImpl = 1,
|
||||
/// Memory has an unknown owner, likely in Bun's Zig codebase. If `isGloballyAllocated`
|
||||
/// is set, then it is owned by mimalloc. When converted to JSValue it has to be cloned
|
||||
/// into a WTF::String.
|
||||
/// Can be in either `utf8` or `utf16le` encodings.
|
||||
ZigString = 2,
|
||||
/// Static memory that is guarenteed to never be freed. When converted to WTF::String,
|
||||
/// the memory is not cloned, but instead referenced with WTF::ExternalStringImpl.
|
||||
/// Can be in either `utf8` or `utf16le` encodings.
|
||||
StaticZigString = 3,
|
||||
/// String is ""
|
||||
Empty = 4,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user