chore(core): remove core.opSync (#16379)

This patch removes the last uses of `core.opSync` from Deno.

The new and JIT-friendly way to call sync ops is `core.ops.op_name()`.
This commit is contained in:
Divy Srivastava 2022-10-21 19:35:23 +05:30 committed by GitHub
parent 659a918f39
commit 0f27b84a5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 22 deletions

View file

@ -38,8 +38,6 @@ declare global {
interface DenoCore {
encode(value: string): Uint8Array;
// deno-lint-ignore no-explicit-any
opSync<T>(name: string, params: T): any;
// deno-lint-ignore no-explicit-any
ops: Record<string, (...args: unknown[]) => any>;
print(msg: string, stderr: boolean): void;
registerErrorClass(