summaryrefslogtreecommitdiff
path: root/deno2/js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-06-11 19:05:27 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-11 19:19:30 +0200
commit9590c87c623ba9654f332e26ba10370915e7ade9 (patch)
treeef6c2ea3474d8d7a42c172e9821f4c1abbf3b4d1 /deno2/js
parentcbbe8ad9992765bc0883759e4075cf7a4a1918ff (diff)
Add deno_dispose to tests.
And fix ArrayBuffer memory problem.
Diffstat (limited to 'deno2/js')
-rw-r--r--deno2/js/mock_runtime.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/deno2/js/mock_runtime.js b/deno2/js/mock_runtime.js
index cd9766685..cdb6031e3 100644
--- a/deno2/js/mock_runtime.js
+++ b/deno2/js/mock_runtime.js
@@ -1,14 +1,13 @@
// A simple runtime that doesn't involve typescript or protobufs to test
// libdeno.
-const globalEval = eval;
-const window = globalEval("this");
+const window = eval("this");
window['foo'] = () => {
deno_print("Hello world from foo");
return "foo";
}
function assert(cond) {
- if (!cond) throw Error("assert failed");
+ if (!cond) throw Error("mock_runtime.js assert failed");
}
function recvabc() {