summaryrefslogtreecommitdiff
path: root/runtime/examples
diff options
context:
space:
mode:
authoryzy-1 <50034950+yzy-1@users.noreply.github.com>2023-05-14 19:55:26 +0000
committerGitHub <noreply@github.com>2023-05-14 21:55:26 +0200
commitb99159bf14d15418a7dbb22e9ce78b15d52971cc (patch)
treeb1f4c3835b534bddb871ec58bb5b082a8088d195 /runtime/examples
parent6bea6b31d3b502165e7e890c889919d67df1a795 (diff)
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
Diffstat (limited to 'runtime/examples')
-rw-r--r--runtime/examples/hello_runtime.rs6
1 files changed, 5 insertions, 1 deletions
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> {