mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
go
Former-commit-id: d90f4747fe450c6f5d11d550df5117a9dca9962e
This commit is contained in:
@@ -74,9 +74,7 @@ fn matchPathNameString(
|
||||
ctx: js.JSContextRef,
|
||||
pathname: string,
|
||||
exception: js.ExceptionRef,
|
||||
) js.JSObjectRef {
|
||||
|
||||
}
|
||||
) js.JSObjectRef {}
|
||||
|
||||
fn matchPathName(
|
||||
ctx: js.JSContextRef,
|
||||
@@ -177,7 +175,7 @@ pub const Instance = NewClass(
|
||||
.@"tsdoc" = "URL path as appears in a web browser's address bar",
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
.filePath = .{
|
||||
.get = getFilePath,
|
||||
.ro = true,
|
||||
@@ -283,6 +281,7 @@ const KindEnum = struct {
|
||||
pub const optional_catch_all = "optional-catch-all";
|
||||
pub const dynamic = "dynamic";
|
||||
|
||||
// this is kinda stupid it should maybe just store it
|
||||
pub fn init(name: string) ZigString {
|
||||
if (strings.contains(name, "[[...")) {
|
||||
return ZigString.init(optional_catch_all);
|
||||
@@ -367,7 +366,6 @@ pub fn getScriptSrc(
|
||||
}
|
||||
break :brk this.script_src_buf[0..this.script_src_buf_writer.pos];
|
||||
};
|
||||
|
||||
|
||||
this.script_src = src;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user