summaryrefslogtreecommitdiff
path: root/runtime/examples/hello_runtime_bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/examples/hello_runtime_bootstrap.js')
-rw-r--r--runtime/examples/hello_runtime_bootstrap.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/examples/hello_runtime_bootstrap.js b/runtime/examples/hello_runtime_bootstrap.js
new file mode 100644
index 000000000..759dde939
--- /dev/null
+++ b/runtime/examples/hello_runtime_bootstrap.js
@@ -0,0 +1,5 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+function hello() {
+ console.log("Hello from extension!");
+}
+globalThis.Extension = { hello };