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/webgpu/00_init.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/webgpu/00_init.js') diff --git a/ext/webgpu/00_init.js b/ext/webgpu/00_init.js index b559fe3db..d33230e58 100644 --- a/ext/webgpu/00_init.js +++ b/ext/webgpu/00_init.js @@ -1,7 +1,9 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import { core } from "ext:core/mod.js"; -const ops = core.ops; +const { + op_lazy_load_esm, +} = core.ensureFastOps(true); let webgpu; @@ -32,7 +34,7 @@ function webGPUNonEnumerable(getter) { function loadWebGPU() { if (!webgpu) { - webgpu = ops.op_lazy_load_esm("ext:deno_webgpu/01_webgpu.js"); + webgpu = op_lazy_load_esm("ext:deno_webgpu/01_webgpu.js"); } } -- cgit v1.2.3