From b99159bf14d15418a7dbb22e9ce78b15d52971cc Mon Sep 17 00:00:00 2001 From: yzy-1 <50034950+yzy-1@users.noreply.github.com> Date: Sun, 14 May 2023 19:55:26 +0000 Subject: 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 --- runtime/examples/hello_runtime.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/examples') diff --git a/runtime/examples/hello_runtime.rs b/runtime/examples/hello_runtime.rs index 2bc371b68..d4e39dd2d 100644 --- a/runtime/examples/hello_runtime.rs +++ b/runtime/examples/hello_runtime.rs @@ -9,7 +9,11 @@ use deno_runtime::worker::WorkerOptions; use std::path::Path; 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] async fn main() -> Result<(), AnyError> { -- cgit v1.2.3