From 515a34b4de222e35c7ade1b92614d746e73d4c2e Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Thu, 11 Jan 2024 07:37:25 +0900 Subject: refactor: use `core.ensureFastOps()` (#21888) --- ext/webidl/00_webidl.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/webidl') diff --git a/ext/webidl/00_webidl.js b/ext/webidl/00_webidl.js index b1a2902f8..6cf2c5f8c 100644 --- a/ext/webidl/00_webidl.js +++ b/ext/webidl/00_webidl.js @@ -7,6 +7,12 @@ /// import { core, primordials } from "ext:core/mod.js"; +const { + isArrayBuffer, + isDataView, + isSharedArrayBuffer, + isTypedArray, +} = core; const { ArrayBufferIsView, ArrayPrototypeForEach, @@ -80,12 +86,6 @@ const { Uint8Array, Uint8ClampedArray, } = primordials; -const { - isArrayBuffer, - isDataView, - isSharedArrayBuffer, - isTypedArray, -} = core; function makeException(ErrorType, message, prefix, context) { return new ErrorType( -- cgit v1.2.3