diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-04-03 02:41:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-02 19:41:41 +0200 |
commit | 03edd48edd004cec091541e6b71095cfbc4b4c87 (patch) | |
tree | 72aed1dae803334b73479ffebc7ca8c83d10addf /ext/web/02_timers.js | |
parent | ad8d0c90d1887beb8a5f2c6d30f9dc71cc63e4fe (diff) |
chore: Turn back on dlintPreferPrimordials (#17715)
Closes #17709
Diffstat (limited to 'ext/web/02_timers.js')
-rw-r--r-- | ext/web/02_timers.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js index c224be884..753848af1 100644 --- a/ext/web/02_timers.js +++ b/ext/web/02_timers.js @@ -19,6 +19,7 @@ const { PromisePrototypeThen, SafeArrayIterator, SymbolFor, + TypedArrayPrototypeGetBuffer, TypeError, indirectEval, } = primordials; @@ -27,7 +28,7 @@ import { reportException } from "ext:deno_web/02_event.js"; import { assert } from "ext:deno_web/00_infra.js"; const hrU8 = new Uint8Array(8); -const hr = new Uint32Array(hrU8.buffer); +const hr = new Uint32Array(TypedArrayPrototypeGetBuffer(hrU8)); function opNow() { ops.op_now(hrU8); return (hr[0] * 1000 + hr[1] / 1e6); |