refactor(core): convert core.print() to a builtin op (#10436)

This commit is contained in:
Aaron O'Mullan 2021-05-03 01:30:03 +02:00 committed by GitHub
parent c9ac851b90
commit ea917384fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 46 deletions

View file

@ -36,7 +36,7 @@ declare global {
// deno-lint-ignore no-explicit-any
opSync<T>(name: string, params: T): any;
ops(): void;
print(msg: string, code?: number): void;
print(msg: string, stderr: bool): void;
registerErrorClass(
name: string,
Ctor: typeof Error,