diff options
Diffstat (limited to 'js/performance_test.ts')
-rw-r--r-- | js/performance_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/performance_test.ts b/js/performance_test.ts index 8f9dbc990..1238a3836 100644 --- a/js/performance_test.ts +++ b/js/performance_test.ts @@ -1,9 +1,9 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { testPerm, assert } from "./test_util.ts"; -testPerm({ highPrecision: false }, function now() { +testPerm({ highPrecision: false }, function now(): void { const start = performance.now(); - setTimeout(() => { + setTimeout((): void => { const end = performance.now(); assert(end - start >= 10); }, 10); |