mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
Use C++ to do flatbuffer parsing.
- Port protobuf messages to flatbuffers. - Demo linking to rust from C++ executable. - Start using the prototype TS libraries.
This commit is contained in:
parent
d9cb093989
commit
9778eceaf5
14 changed files with 1881 additions and 186 deletions
|
@ -1,6 +1,5 @@
|
|||
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
||||
// All rights reserved. MIT License.
|
||||
import * as timer from "./timers";
|
||||
|
||||
// If you use the eval function indirectly, by invoking it via a reference
|
||||
// other than eval, as of ECMAScript 5 it works in the global scope rather than
|
||||
|
@ -11,22 +10,23 @@ export const globalEval = eval;
|
|||
|
||||
// A reference to the global object.
|
||||
// TODO The underscore is because it's conflicting with @types/node.
|
||||
export const _global = globalEval("this");
|
||||
export const window = globalEval("this");
|
||||
|
||||
_global["window"] = _global; // Create a window object.
|
||||
import "./url";
|
||||
window["window"] = window; // Create a window object.
|
||||
// import "./url";
|
||||
|
||||
_global["setTimeout"] = timer.setTimeout;
|
||||
_global["setInterval"] = timer.setInterval;
|
||||
_global["clearTimeout"] = timer.clearTimer;
|
||||
_global["clearInterval"] = timer.clearTimer;
|
||||
// import * as timer from "./timers";
|
||||
// window["setTimeout"] = timer.setTimeout;
|
||||
// window["setInterval"] = timer.setInterval;
|
||||
// window["clearTimeout"] = timer.clearTimer;
|
||||
// window["clearInterval"] = timer.clearTimer;
|
||||
|
||||
import { Console } from "./console";
|
||||
_global["console"] = new Console();
|
||||
window["console"] = new Console();
|
||||
|
||||
import { fetch } from "./fetch";
|
||||
_global["fetch"] = fetch;
|
||||
// import { fetch } from "./fetch";
|
||||
// window["fetch"] = fetch;
|
||||
|
||||
import { TextEncoder, TextDecoder } from "text-encoding";
|
||||
_global["TextEncoder"] = TextEncoder;
|
||||
_global["TextDecoder"] = TextDecoder;
|
||||
// import { TextEncoder, TextDecoder } from "text-encoding";
|
||||
// window["TextEncoder"] = TextEncoder;
|
||||
// window["TextDecoder"] = TextDecoder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue