From 734cf781c6e606a8a836863a391c94cf4fad22d7 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Mon, 8 Apr 2019 22:22:40 +0200 Subject: Allow high precision performance.now() (#1977) --- tests/025_high_precision.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/025_high_precision.ts (limited to 'tests/025_high_precision.ts') diff --git a/tests/025_high_precision.ts b/tests/025_high_precision.ts new file mode 100644 index 000000000..85b3c839b --- /dev/null +++ b/tests/025_high_precision.ts @@ -0,0 +1,3 @@ +console.log(performance.now() % 2 !== 0); +Deno.revokePermission("highPrecision"); +console.log(performance.now() % 2 === 0); -- cgit v1.2.3