mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix(runtime): Example hello_runtime panic (#19125)
After commit f34fcd, running example will panic because esm_entry_point is not set. Closes https://github.com/denoland/deno/issues/19127
This commit is contained in:
parent
6bea6b31d3
commit
b99159bf14
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ use deno_runtime::worker::WorkerOptions;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
deno_core::extension!(hello_runtime, esm = ["hello_runtime_bootstrap.js"]);
|
deno_core::extension!(
|
||||||
|
hello_runtime,
|
||||||
|
esm_entry_point = "ext:hello_runtime/hello_runtime_bootstrap.js",
|
||||||
|
esm = ["hello_runtime_bootstrap.js"]
|
||||||
|
);
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), AnyError> {
|
async fn main() -> Result<(), AnyError> {
|
||||||
|
|
Loading…
Reference in a new issue