1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/runtime/examples/extension_with_esm/bootstrap.js
Exidex f3193e0e1c
feat(runtime): Add example for extension with ops (#19204)
Spend quite some time trying to get this working. With proper example
would have been a lot faster. So this is pr with the example. I also
rearranged examples a little bit to allow for addition of more examples
2023-05-31 14:26:24 -06:00

5 lines
170 B
JavaScript

// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
function hello() {
console.log("Hello from extension!");
}
globalThis.Extension = { hello };