refactor: use core.ensureFastOps() (#21888)

This commit is contained in:
Kenta Moriuchi 2024-01-11 07:37:25 +09:00 committed by GitHub
parent d4893eb51a
commit 515a34b4de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
107 changed files with 1653 additions and 1147 deletions

View file

@ -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");
}
}