Skip to content

Commit

Permalink
[Bun.js] Rename Bun.sleep -> Bun.sleepSync
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Nov 3, 2021
1 parent 59bdb62 commit 92a7849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/javascript/jsc/javascript.zig
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ pub const Bun = struct {
}
}

pub fn sleep(
pub fn sleepSync(
this: void,
ctx: js.JSContextRef,
function: js.JSObjectRef,
Expand Down Expand Up @@ -509,8 +509,8 @@ pub const Bun = struct {
.rfn = Router.match,
.ts = Router.match_type_definition,
},
.sleep = .{
.rfn = sleep,
.sleepSync = .{
.rfn = sleepSync,
},
.fetch = .{
.rfn = Fetch.call,
Expand Down

0 comments on commit 92a7849

Please sign in to comment.