mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 05:35:33 +00:00
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
This commit is contained in:
parent
b1e28b0708
commit
f3193e0e1c
6 changed files with 59 additions and 8 deletions
4
runtime/examples/extension_with_esm/main.js
Normal file
4
runtime/examples/extension_with_esm/main.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
console.log("Hello world!");
|
||||
console.log(Deno);
|
||||
Extension.hello();
|
Loading…
Add table
Add a link
Reference in a new issue