1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/js/core.ts
Ryan Dahl 44773c9b0f Integrate //core into existing code base
This disables a few tests which are broken still:
- tests/error_004_missing_module.test
- tests/error_005_missing_dynamic_import.test
- tests/error_006_import_ext_failure.test
- repl_test test_set_timeout
- repl_test test_async_op
- repl_test test_set_timeout_interlaced
- all of permission_prompt_test
2019-03-18 17:17:08 -04:00

13 lines
467 B
TypeScript

// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { window } from "./window";
type MessageCallback = (msg: Uint8Array) => void;
// Declared in core/shared_queue.js.
interface DenoCore {
setAsyncHandler(cb: MessageCallback): void;
dispatch(control: Uint8Array, zeroCopy?: Uint8Array): null | Uint8Array;
}
// TODO(ry) Rename to Deno.core.shared and Deno.core.setAsyncHandler.
export const DenoCore = window.DenoCore as DenoCore;