diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-10 00:32:04 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-10 01:02:08 +0200 |
commit | 110ddab670cbf477488cceeea2842c980942d7b8 (patch) | |
tree | 6bc1e6dd42f01b98f302e97b4dd4dbb3a7be700d /deno2/js/main.ts | |
parent | fe9ea6dcf8f57cff5c3856a5d54e8f9c8236a924 (diff) |
Add deno2 prototype from external repo.
Diffstat (limited to 'deno2/js/main.ts')
-rw-r--r-- | deno2/js/main.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deno2/js/main.ts b/deno2/js/main.ts new file mode 100644 index 000000000..a41a7dfee --- /dev/null +++ b/deno2/js/main.ts @@ -0,0 +1,7 @@ +const globalEval = eval; +const window = globalEval("this"); +window['foo'] = () => { + deno_print("Hello world from foo"); + return "foo"; +} + |