You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{emit}from'https://deno.land/x/emit/mod.ts';letcode=(awaitemit('',{load: async(_)=>{return{kind: 'module',specifier: 'file:///_.ts',content: 'let x: number = 33'}}}))['file:///_.ts'];console.log(code);
If you save this code as demo.ts and run it, you get:
$ deno run --allow-read foo.ts
⚠️ ┌ Deno requests network access to "deno.land".
├ Requested by `Deno.permissions.query()` API
├ Run again with --allow-net to bypass this prompt.
└ Allow? [y/n] (y = yes, allow; n = no, deny)
The text was updated successfully, but these errors were encountered:
If you save this code as
demo.ts
and run it, you get:The text was updated successfully, but these errors were encountered: