diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 03:12:36 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 03:12:36 -0400 |
| commit | 7828d7fd7a4ccfc7ba41765131ac82bccd2e43bb (patch) | |
| tree | 0c30b99b2abb53fe2b13bd9089e9803d93de89fe /util.ts | |
| parent | 6f59a9588b7d6d53c5f56facb0e33f7faec7b6fe (diff) | |
Minor clean up
Diffstat (limited to 'util.ts')
| -rw-r--r-- | util.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(" ")); } }; |
