diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-03-13 21:23:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 04:23:37 +0100 |
commit | 66fd6f286641d4d2491d7b4bb314bd7e7eff16d8 (patch) | |
tree | b84aa4cac4c0a756539c91e5df4193d3636ae2bb /runtime/examples/extension/bootstrap.js | |
parent | 1f3c4c976313904d5df0b33b2cc0e282e62d1000 (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.js | 7 |
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 }; |