summaryrefslogtreecommitdiff
path: root/runtime/examples/extension/bootstrap.js
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-03-13 21:23:37 -0600
committerGitHub <noreply@github.com>2024-03-14 04:23:37 +0100
commit66fd6f286641d4d2491d7b4bb314bd7e7eff16d8 (patch)
treeb84aa4cac4c0a756539c91e5df4193d3636ae2bb /runtime/examples/extension/bootstrap.js
parent1f3c4c976313904d5df0b33b2cc0e282e62d1000 (diff)
fix(cli): unbreak extension example and fix __runtime_js_sources (#22906)
Better example to close https://github.com/denoland/deno/issues/22600 --------- Signed-off-by: Matt Mastracci <matthew@mastracci.com>
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 };