Former-commit-id: d90f4747fe450c6f5d11d550df5117a9dca9962e
This commit is contained in:
Jarred Sumner
2021-08-11 13:56:03 -07:00
parent ca90126cc4
commit 842bb9cba2
5 changed files with 136 additions and 14 deletions

View File

@@ -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;