Core
Table of Contents
Classes
- JsRuntime
- The JsRuntime is a wrapper around a V8 isolate. It can execute ES6 including ES6 modules. The JsRuntime
does not include any of the Deno.core.* ops, and does not provide implementations for web apis, such as
fetch(). Use JsRuntime if you want to provide low-level v8 isolates, and implement extensions for all
functionality such as local storage, remote requests etc.
- JsFile
- JsFile is a descriptor for JavaScript files that are loaded as
part of the Extension->js_files array. The `code` of `JsFile` is
executed when the JsRuntime is initiated.
- ModuleSource
- ModuleSource represents an ES6 module, including the source code and type. An ModuleSource should
be returned from your module loader passed to JsRuntime's RuntimeOptions::module_loader property.
- ModuleLoader
- The module loader interface (don't trust the docs, this is an interface not a class!)
Pass an instance of your class that implements `Deno\Core\ModuleLoader` to the `module_loader`
property of `Deno\Runtime\WorkerOptions` or `Deno\Core\RuntimeOptions`
- Extension
- Extension contains PHP functions (ops) and associated js files which are
exposed to JavaScript via the JsRuntime. PHP functions can be called from JavaScript
via `Deno.core.$name` where `$name` is the array key string from the `ops` property.
- RuntimeOptions
- The options provided to the JsRuntime. Pass an instance of this class
to Deno\Core\JsRuntime.