mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor: use core.ensureFastOps()
(#21888)
This commit is contained in:
parent
d4893eb51a
commit
515a34b4de
107 changed files with 1653 additions and 1147 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue