refactor: migrate extensions to virtual ops module (#22135)

First pass of migrating away from `Deno.core.ensureFastOps()`.

A few "tricky" ones have been left for a follow up.
This commit is contained in:
Bartek Iwańczuk 2024-01-26 23:46:46 +01:00 committed by GitHub
parent d889f99657
commit 462ce14a78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 93 additions and 156 deletions

View file

@ -15,14 +15,14 @@ const {
isSharedArrayBuffer,
isTypedArray,
} = core;
const {
import {
op_encoding_decode,
op_encoding_decode_single,
op_encoding_decode_utf8,
op_encoding_encode_into,
op_encoding_new_decoder,
op_encoding_normalize_label,
} = core.ensureFastOps();
} from "ext:core/ops";
const {
DataViewPrototypeGetBuffer,
DataViewPrototypeGetByteLength,