Lines Matching defs:const

3 const {
20 const { inspect } = require('internal/util/inspect');
21 const {
24 const colors = require('internal/util/colors');
25 const {
28 const { isErrorStackTraceLimitWritable } = require('internal/errors');
31 const kReadableOperator = {
47 const kMaxShortLength = 12;
50 const keys = ObjectKeys(source);
51 const target = ObjectCreate(ObjectGetPrototypeOf(source));
52 for (const key of keys) {
85 const actualInspected = inspectValue(actual);
86 const actualLines = StringPrototypeSplit(actualInspected, '\n');
87 const expectedLines = StringPrototypeSplit(inspectValue(expected), '\n');
107 const c = inspect.defaultOptions.colors;
108 const actualRaw = c ? removeColors(actualLines[0]) : actualLines[0];
109 const expectedRaw = c ? removeColors(expectedLines[0]) : expectedLines[0];
110 const inputLength = actualRaw.length + expectedRaw.length;
125 const maxLength = process.stderr.isTTY ? process.stderr.columns : 80;
159 const maxLines = MathMax(actualLines.length, expectedLines.length);
164 const actualLines = StringPrototypeSplit(actualInspected, '\n');
192 const msg = kReadableOperator[operator] +
194 const skippedMsg = ` ${colors.blue}...${colors.white} Lines skipped`;
238 const expectedLine = expectedLines[i];
315 const lines = StringPrototypeSplit(string, '\n', 11);
328 const {
341 const limit = Error.stackTraceLimit;
368 const res = StringPrototypeSplit(inspectValue(actual), '\n');
396 const knownOperator = kReadableOperator[operator];
413 const newOp = kReadableOperator[`${operator}Unequal`];
465 const tmpActual = this.actual;
466 const tmpExpected = this.expected;
479 const result = inspect(this, {