Lines Matching defs:const
5 const assert = require('assert');
6 const util = require('util');
7 const { internalBinding } = require('internal/test/binding');
8 const processUtil = internalBinding('util');
9 const opts = { showProxy: true };
13 const target = {
24 const handler = {
63 const r = Proxy.revocable({}, {});
113 const proxy1 = new Proxy({}, {});
114 const proxy2 = new Proxy(proxy1, {});
115 const proxy3 = new Proxy(proxy2, proxy1);
116 const proxy4 = new Proxy(proxy1, proxy2);
117 const proxy5 = new Proxy(proxy3, proxy4);
118 const proxy6 = new Proxy(proxy5, proxy5);
119 const expected0 = '{}';
120 const expected1 = 'Proxy [ {}, {} ]';
121 const expected2 = 'Proxy [ Proxy [ {}, {} ], {} ]';
122 const expected3 = 'Proxy [ Proxy [ Proxy [ {}, {} ], {} ], Proxy [ {}, {} ] ]';
123 const expected4 = 'Proxy [ Proxy [ {}, {} ], Proxy [ Proxy [ {}, {} ], {} ] ]';
124 const expected5 = 'Proxy [\n ' +
128 const expected6 = 'Proxy [\n' +
154 const proxy7 = new Proxy([], []);
155 const expected7 = 'Proxy [ [], [] ]';
160 const proxy8 = new Proxy(Date, []);
161 const proxy9 = new Proxy(Date, String);
162 const expected8 = 'Proxy [ [Function: Date], [] ]';
163 const expected9 = 'Proxy [ [Function: Date], [Function: String] ]';
169 const proxy10 = new Proxy(() => {}, {});
170 const proxy11 = new Proxy(() => {}, {
178 const expected10 = '[Function (anonymous)]';
179 const expected11 = '[Function (anonymous)]';