replace 'prompt' example by 'environment'
This commit is contained in:
parent
f8008aa25d
commit
b1c2e7836d
15 changed files with 317 additions and 517 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue