mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Minor clean up
This commit is contained in:
parent
6f59a9588b
commit
7828d7fd7a
3 changed files with 5 additions and 5 deletions
4
util.ts
4
util.ts
|
@ -8,6 +8,8 @@ const globalEval = eval;
|
|||
// A reference to the global object.
|
||||
const _global = globalEval("this");
|
||||
|
||||
const print = V8Worker2.print;
|
||||
|
||||
_global["console"] = {
|
||||
// tslint:disable-next-line:no-any
|
||||
log(...args: any[]): void {
|
||||
|
@ -19,6 +21,6 @@ _global["console"] = {
|
|||
out.push(JSON.stringify(a));
|
||||
}
|
||||
}
|
||||
V8Worker2.print(out.join(" "));
|
||||
print(out.join(" "));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue