mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Add deno_dispose to tests.
And fix ArrayBuffer memory problem.
This commit is contained in:
parent
cbbe8ad999
commit
9590c87c62
3 changed files with 15 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue