summaryrefslogtreecommitdiff
path: root/core/examples
diff options
context:
space:
mode:
Diffstat (limited to 'core/examples')
-rw-r--r--core/examples/hello_world.rs2
-rw-r--r--core/examples/http_bench_json_ops.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/examples/hello_world.rs b/core/examples/hello_world.rs
index 787ec09db..fd6cabf2b 100644
--- a/core/examples/hello_world.rs
+++ b/core/examples/hello_world.rs
@@ -27,7 +27,7 @@ fn main() {
// contains a Deno.core object with several functions for interacting with it.
// You can find its definition in core.js.
runtime
- .execute(
+ .execute_script(
"<usage>",
r#"
// Print helper function, calling Deno.core.print()
diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs
index a29ebfcf2..82eb18d6b 100644
--- a/core/examples/http_bench_json_ops.rs
+++ b/core/examples/http_bench_json_ops.rs
@@ -218,7 +218,7 @@ fn main() {
let future = async move {
js_runtime
- .execute(
+ .execute_script(
"http_bench_json_ops.js",
include_str!("http_bench_json_ops.js"),
)