Skip to content

Commit

Permalink
another path
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway committed Feb 1, 2024
1 parent 0addbfb commit 7c8409e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/builtins/Module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export function overridableRequire(this: CommonJSModuleRecord, id: string) {
}

$visibility = "Private";
export function requireResolve(this: string | { path: string }, id: string) {
return $resolveSync(id, typeof this === "string" ? this : this?.path, false);
export function requireResolve(this: string | { id: string }, id: string) {
return $resolveSync(id, typeof this === "string" ? this : this?.id, false);
}

$visibility = "Private";
Expand Down

0 comments on commit 7c8409e

Please sign in to comment.