%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
'use strict'; require('../common'); // This test ensures that util.inspect logs getters // which access this. const assert = require('assert'); const { inspect } = require('util'); { class X { constructor() { this._y = 123; } get y() { return this._y; } } const result = inspect(new X(), { getters: true, showHidden: true }); assert.strictEqual( result, 'X { _y: 123, [y]: [Getter: 123] }' ); } // Regression test for https://github.com/nodejs/node/issues/37054 { class A { constructor(B) { this.B = B; } get b() { return this.B; } } class B { constructor() { this.A = new A(this); } get a() { return this.A; } } const result = inspect(new B(), { depth: 1, getters: true, showHidden: true }); assert.strictEqual( result, '<ref *1> B {\n' + ' A: A { B: [Circular *1], [b]: [Getter] [Circular *1] },\n' + ' [a]: [Getter] A { B: [Circular *1], [b]: [Getter] [Circular *1] }\n' + '}', ); }