mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
skeleton
This commit is contained in:
@@ -392,6 +392,9 @@ pub const ArgumentsSlice = struct {
|
||||
arena: std.heap.ArenaAllocator = std.heap.ArenaAllocator.init(bun.default_allocator),
|
||||
all: []const JSC.JSValue,
|
||||
|
||||
pub fn from(arguments: []const JSC.JSValueRef) ArgumentsSlice {
|
||||
return init(@ptrCast([*]const JSC.JSValue, arguments.ptr)[0..arguments.len]);
|
||||
}
|
||||
pub fn init(arguments: []const JSC.JSValue) ArgumentsSlice {
|
||||
return ArgumentsSlice{
|
||||
.remaining = arguments,
|
||||
|
||||
Reference in New Issue
Block a user