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/console/01_console.js | |
parent | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff) |
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'ext/console/01_console.js')
-rw-r--r-- | ext/console/01_console.js | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/ext/console/01_console.js b/ext/console/01_console.js index 0ca8b04ff..ae629a432 100644 --- a/ext/console/01_console.js +++ b/ext/console/01_console.js @@ -4,6 +4,36 @@ import { core, internals, primordials } from "ext:core/mod.js"; const { + isAnyArrayBuffer, + isArgumentsObject, + isArrayBuffer, + isAsyncFunction, + isBigIntObject, + isBooleanObject, + isBoxedPrimitive, + isDataView, + isDate, + isGeneratorFunction, + isMap, + isMapIterator, + isModuleNamespaceObject, + isNativeError, + isNumberObject, + isPromise, + isRegExp, + isSet, + isSetIterator, + isStringObject, + isTypedArray, + isWeakMap, + isWeakSet, +} = core; +const { + op_get_constructor_name, + op_get_non_index_property_names, + op_preview_entries, +} = core.ensureFastOps(true); +const { Array, ArrayBufferPrototypeGetByteLength, ArrayIsArray, @@ -30,13 +60,12 @@ const { DatePrototypeGetTime, DatePrototypeToISOString, Error, - ErrorPrototype, ErrorCaptureStackTrace, + ErrorPrototype, ErrorPrototypeToString, FunctionPrototypeBind, FunctionPrototypeCall, FunctionPrototypeToString, - NumberIsNaN, MapPrototypeDelete, MapPrototypeEntries, MapPrototypeForEach, @@ -52,6 +81,7 @@ const { MathSqrt, Number, NumberIsInteger, + NumberIsNaN, NumberParseInt, NumberPrototypeToString, NumberPrototypeValueOf, @@ -90,8 +120,8 @@ const { SafeSetIterator, SafeStringIterator, SetPrototypeAdd, - SetPrototypeHas, SetPrototypeGetSize, + SetPrototypeHas, SetPrototypeValues, String, StringPrototypeCharCodeAt, @@ -125,36 +155,6 @@ const { TypedArrayPrototypeGetLength, Uint8Array, } = primordials; -const { - isAnyArrayBuffer, - isArgumentsObject, - isArrayBuffer, - isAsyncFunction, - isBigIntObject, - isBooleanObject, - isBoxedPrimitive, - isDataView, - isDate, - isGeneratorFunction, - isMap, - isMapIterator, - isModuleNamespaceObject, - isNativeError, - isNumberObject, - isPromise, - isRegExp, - isSet, - isSetIterator, - isStringObject, - isTypedArray, - isWeakSet, - isWeakMap, -} = core; -const { - op_get_non_index_property_names, - op_get_constructor_name, - op_preview_entries, -} = core.ensureFastOps(true); let noColor = () => false; |