summaryrefslogtreecommitdiff
path: root/runtime/examples/extension/bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/examples/extension/bootstrap.js')
-rw-r--r--runtime/examples/extension/bootstrap.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/examples/extension/bootstrap.js b/runtime/examples/extension/bootstrap.js
new file mode 100644
index 000000000..9461acb84
--- /dev/null
+++ b/runtime/examples/extension/bootstrap.js
@@ -0,0 +1,7 @@
+// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+import { op_hello } from "ext:core/ops";
+function hello() {
+ op_hello("world");
+}
+
+globalThis.Extension = { hello };