2023-02-14 11:38:45 -05:00
|
|
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
|
2023-03-08 06:44:54 -05:00
|
|
|
import { getBinding } from "ext:deno_node/internal_binding/mod.ts";
|
|
|
|
import type { BindingName } from "ext:deno_node/internal_binding/mod.ts";
|
2023-02-14 11:38:45 -05:00
|
|
|
|
|
|
|
export function internalBinding(name: BindingName) {
|
|
|
|
return getBinding(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO(kt3k): export actual primordials
|
|
|
|
export const primordials = {};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
internalBinding,
|
|
|
|
primordials,
|
|
|
|
};
|