diff options
author | Dmitry Sharshakov <sh7dm@outlook.com> | 2019-02-02 09:27:42 +0300 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-02 01:27:42 -0500 |
commit | 16ed1f2545b34851ebdb9095251236fb51e39f5d (patch) | |
tree | ef88386129adefaf0ed22f150dff01b1f134563e /js/globals.ts | |
parent | e5899b14e268b6b636b04b8f5a78df4c23e00478 (diff) |
Add performance.now (#1633)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index e45aee9e2..9e7d20bcc 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -21,6 +21,7 @@ import * as timers from "./timers"; import * as url from "./url"; import * as urlSearchParams from "./url_search_params"; import * as workers from "./workers"; +import * as performanceUtil from "./performance"; // These imports are not exposed and therefore are fine to just import the // symbols required. @@ -93,4 +94,6 @@ export type TextEncoder = textEncoding.TextEncoder; window.TextDecoder = textEncoding.TextDecoder; export type TextDecoder = textEncoding.TextDecoder; +window.performance = new performanceUtil.Performance(); + window.workerMain = workers.workerMain; |