mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 13:14:48 +00:00
Add mock_runtime_test.
This commit is contained in:
parent
b042c7c071
commit
0e07e16dd6
7 changed files with 73 additions and 44 deletions
9
deno2/js/mock_runtime.js
Normal file
9
deno2/js/mock_runtime.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// A simple runtime that doesn't involve typescript or protobufs to test
|
||||
// libdeno.
|
||||
const globalEval = eval;
|
||||
const window = globalEval("this");
|
||||
window['foo'] = () => {
|
||||
deno_print("Hello world from foo");
|
||||
return "foo";
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue