Lines Matching defs:const

4 const assert = require('assert');
5 const util = require('util');
6 const { AssertionError } = assert;
7 const defaultMsgStart = 'Expected values to be strictly deep-equal:\n';
8 const defaultMsgStartFull = `${defaultMsgStart}+ actual - expected`;
20 for (const [i, value] of values.entries()) {
21 const str = util.inspect(value, {
46 const arr = new Uint8Array([120, 121, 122, 10]);
47 const buf = Buffer.from(arr);
61 const buf2 = Buffer.from(arr);
82 const arr2 = new Uint8Array([120, 121, 122, 10]);
101 const date = new Date('2016');
110 const date2 = new MyDate('2016');
139 const re1 = new RegExp('test');
140 const re2 = new MyRegExp('test');
155 const similar = new Set([
170 for (const a of similar) {
171 for (const b of similar) {
238 const a = [ 1, 2 ];
239 const b = [ 3, 4 ];
240 const c = [ 1, 2 ];
241 const d = [ 3, 4 ];
402 const b = {};
404 const c = {};
409 const d = {};
412 const e = {};
421 const a = {};
422 const b = {};
430 const a = new Set();
431 const b = new Set();
432 const c = new Set();
442 const args = (function() { return arguments; })();
449 const returnArguments = function() { return arguments; };
451 const someArgs = returnArguments('a');
452 const sameArgs = returnArguments('a');
453 const diffArgs = returnArguments('b');
462 const values = [
477 const mapValues = values.map((v) => [v, { a: 5 }]);
483 const s1 = new Set();
484 const s2 = new Set();
493 const m1 = new Map();
494 const m2 = new Map();
495 const obj = { a: 5, b: 6 };
508 const m1 = new Map();
509 const m2 = new Map();
519 const map1 = new Map([[1, 1]]);
520 const map2 = new Map([[1, '1']]);
536 const s1 = new Set();
537 const s2 = new Set();
541 const m1 = new Map();
542 const m2 = new Map();
549 const s1 = new Set();
551 const s2 = new Set();
555 const m1 = new Map();
557 const m2 = new Map();
561 const m3 = new Map();
563 const m4 = new Map();
574 const a = new Array(3);
575 const b = new Array(3);
587 const err1 = new Error('foo1');
601 const boxedString = new String('test');
602 const boxedSymbol = Object(Symbol());
604 const fakeBoxedSymbol = {};
635 const symbol1 = Symbol();
636 const obj1 = { [symbol1]: 1 };
637 const obj2 = { [symbol1]: 1 };
638 const obj3 = { [Symbol()]: 1 };
646 const a = new Uint8Array(4);
647 const b = new Uint8Array(4);
654 const boxedStringA = new String('test');
655 const boxedStringB = new String('test');
661 const arr = [1];
662 const arr2 = [1];
715 const re1 = /a/g;
734 const a1 = [1, 2, 3];
735 const a2 = [1, 2, 3];
745 const nbRoot = {
763 const nb1 = new nameBuilder('Ryan', 'Dahl');
786 const s = Symbol();
855 const re1 = /a/;
917 const obj1 = new Constructor1('Ryan', 'Dahl');
929 const a = new TypeError('foo');
930 const b = new TypeError('foo');
964 const arrProxy = new Proxy([1, 2], {});
966 const tmp = util.inspect.defaultOptions;
975 const invalidTrap = new Proxy([1, 2, 3], {
991 const a = {};
992 const b = {};
1010 const a = new String(1);
1017 const arr = [1, 2, 3];
1039 const a = new Date('2000');
1040 const b = new Date('2000');
1050 const a = [1, 2, 3];
1051 const o = {
1064 const a = {
1081 const err = new Error('foo');
1083 const err2 = new Error('bar');
1090 const source = new Error('abc');
1091 const err = Object.create(
1094 const err2 = Object.create(
1104 const a = new Number(5);
1105 const b = new Number(5);
1117 const a = {
1120 const b = {
1205 const a = { x: 1 };
1206 const b = { y: 1 };