Skip to content

Commit 598c8b9

Browse files
Fix for Node.js 20
1 parent dd511ff commit 598c8b9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: IntegrationTests/TestSuites/Sources/ConcurrencyTests/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Darwin
99
#if compiler(>=5.5)
1010

1111
func performanceNow() -> Double {
12-
return JSObject.global.performance.now.function!().number!
12+
return JSObject.global.performance.now().number!
1313
}
1414

1515
func measure(_ block: () async throws -> Void) async rethrows -> Double {

Diff for: IntegrationTests/lib.js

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const WASI = {
6464
args: [programName],
6565
env: {},
6666
returnOnExit: false,
67+
version: "preview1",
6768
})
6869

6970
return {

0 commit comments

Comments
 (0)