Add deno_dispose to tests.

And fix ArrayBuffer memory problem.
This commit is contained in:
Ryan Dahl 2018-06-11 19:05:27 +02:00
parent cbbe8ad999
commit 9590c87c62
3 changed files with 15 additions and 8 deletions

View file

@ -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() {