Skip to content

Commit 472d2c8

Browse files
vkarpov15Copilot
andauthored
Update lib/connection.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 489ccc6 commit 472d2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const sessionNewDocuments = require('./helpers/symbols').sessionNewDocuments;
3030

3131
// Snapshot the native Date constructor to ensure both Date.now() and new Date() (and other Date methods)
3232
// bypass timer mocks such as those set up by useFakeTimers().
33-
const Date = global.Date;
33+
const Date = globalThis.Date;
3434

3535
/**
3636
* A list of authentication mechanisms that don't require a password for authentication.

0 commit comments

Comments
 (0)