summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/console/constructor.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/console/constructor.mjs')
-rw-r--r--ext/node/polyfills/internal/console/constructor.mjs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/node/polyfills/internal/console/constructor.mjs b/ext/node/polyfills/internal/console/constructor.mjs
index e9160cf70..45bca6675 100644
--- a/ext/node/polyfills/internal/console/constructor.mjs
+++ b/ext/node/polyfills/internal/console/constructor.mjs
@@ -5,7 +5,9 @@
// deno-lint-ignore-file prefer-primordials
import { core } from "ext:core/mod.js";
-const ops = core.ops;
+const {
+ op_preview_entries,
+} = core.ensureFastOps(true);
// Mock trace for now
const trace = () => {};
@@ -502,7 +504,7 @@ const consoleMethods = {
let isKeyValue = false;
let i = 0;
if (mapIter) {
- const res = ops.op_preview_entries(tabularData, true);
+ const res = op_preview_entries(tabularData, true);
tabularData = res[0];
isKeyValue = res[1];
}
@@ -537,7 +539,7 @@ const consoleMethods = {
const setIter = isSetIterator(tabularData);
if (setIter) {
- tabularData = ops.op_preview_entries(tabularData, false);
+ tabularData = op_preview_entries(tabularData, false);
}
const setlike = setIter || mapIter || isSet(tabularData);