From 66fd6f286641d4d2491d7b4bb314bd7e7eff16d8 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 13 Mar 2024 21:23:37 -0600 Subject: 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 --- runtime/examples/extension/bootstrap.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 runtime/examples/extension/bootstrap.js (limited to 'runtime/examples/extension/bootstrap.js') 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 }; -- cgit v1.2.3