Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/core/libdeno/libdeno.d.ts>DenoCore

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface DenoCore
import { type DenoCore } from "https://deno.land/x/deno@v0.10.0/core/libdeno/libdeno.d.ts";

Properties

shared: SharedArrayBuffer
errorToJSON: (e: Error) => string

Methods

recv(cb: MessageCallback): void
send(control: null | ArrayBufferView, data?: ArrayBufferView): null | Uint8Array
print(x: string, isErr?: boolean): void
evalContext(code: string): [any, EvalErrorInfo | null]

Evaluate provided code in the current context. It differs from eval(...) in that it does not create a new context. Returns an array: [output, errInfo]. If an error occurs, output becomes null and errInfo is non-null.