Skip to content

Commit

Permalink
Fix for Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jan 15, 2024
1 parent dd511ff commit 598c8b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Darwin
#if compiler(>=5.5)

func performanceNow() -> Double {
return JSObject.global.performance.now.function!().number!
return JSObject.global.performance.now().number!
}

func measure(_ block: () async throws -> Void) async rethrows -> Double {
Expand Down
1 change: 1 addition & 0 deletions IntegrationTests/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const WASI = {
args: [programName],
env: {},
returnOnExit: false,
version: "preview1",
})

return {
Expand Down

0 comments on commit 598c8b9

Please sign in to comment.