mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 00:59:24 -05:00
17 lines
544 B
TypeScript
17 lines
544 B
TypeScript
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||
|
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
|
||
|
import { getBinding } from "internal:deno_node/polyfills/internal_binding/mod.ts";
|
||
|
import type { BindingName } from "internal:deno_node/polyfills/internal_binding/mod.ts";
|
||
|
|
||
|
export function internalBinding(name: BindingName) {
|
||
|
return getBinding(name);
|
||
|
}
|
||
|
|
||
|
// TODO(kt3k): export actual primordials
|
||
|
export const primordials = {};
|
||
|
|
||
|
export default {
|
||
|
internalBinding,
|
||
|
primordials,
|
||
|
};
|