mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
remove global_eval.ts (#1813)
This commit is contained in:
parent
a5720d9e28
commit
c4e3728575
10 changed files with 18 additions and 35 deletions
|
@ -1,5 +1,5 @@
|
|||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||
import { globalEval } from "./global_eval";
|
||||
import { window } from "./window";
|
||||
|
||||
// The libdeno functions are moved so that users can't access them.
|
||||
type MessageCallback = (msg: Uint8Array) => void;
|
||||
|
@ -40,5 +40,4 @@ interface Libdeno {
|
|||
errorToJSON: (e: Error) => string;
|
||||
}
|
||||
|
||||
const window = globalEval("this");
|
||||
export const libdeno = window.libdeno as Libdeno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue