replace 'prompt' example by 'environment'

This commit is contained in:
Joeri Exelmans 2025-05-09 14:53:43 +02:00
parent f8008aa25d
commit b1c2e7836d
15 changed files with 317 additions and 517 deletions

View file

@ -2,11 +2,13 @@ import { getHumanReadableName } from "../primitives/symbol.js";
import { inspect } from "util";
import { prettyT } from "../util/pretty.js";
export const inspectType = function(depth, options, inspect){ return options.stylize(prettyT(this), 'date'); }
const __makeTypeConstructor = (symbol, nAry, params) => {
if (nAry === 0) {
return {
symbol, params,
[inspect.custom](depth, options, inspect){ return options.stylize(prettyT(this), 'null'); },
[inspect.custom]: inspectType,
};
}
// only for debugging, do we give the function a name