diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-01-11 07:37:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 15:37:25 -0700 |
commit | 515a34b4de222e35c7ade1b92614d746e73d4c2e (patch) | |
tree | 8284201fc826a33f12597959a8a8be14e0f524bd /ext/web/02_structured_clone.js | |
parent | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff) |
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'ext/web/02_structured_clone.js')
-rw-r--r-- | ext/web/02_structured_clone.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/web/02_structured_clone.js b/ext/web/02_structured_clone.js index 13275e2d8..bd08e761f 100644 --- a/ext/web/02_structured_clone.js +++ b/ext/web/02_structured_clone.js @@ -7,7 +7,9 @@ /// <reference path="../web/lib.deno_web.d.ts" /> import { core, primordials } from "ext:core/mod.js"; -import { DOMException } from "ext:deno_web/01_dom_exception.js"; +const { + isArrayBuffer, +} = core; const { ArrayBuffer, ArrayBufferPrototypeGetByteLength, @@ -37,9 +39,8 @@ const { Float32Array, Float64Array, } = primordials; -const { - isArrayBuffer, -} = core; + +import { DOMException } from "ext:deno_web/01_dom_exception.js"; const objectCloneMemo = new SafeWeakMap(); |