MCPcopy Create free account
hub / github.com/nodejs/node / constructor

Method constructor

deps/v8/tools/system-analyzer/view/helper.mjs:207–215  ·  view source on GitHub ↗
(node, string, limit = 200)

Source from the content-addressed store, hash-verified

205
206export class ExpandableText {
207 constructor(node, string, limit = 200) {
208 this._node = node;
209 this._string = string;
210 this._delta = limit / 2;
211 this._start = 0;
212 this._end = string.length;
213 this._button = this._createExpandButton();
214 this.expand();
215 }
216
217 _createExpandButton() {
218 const button = DOM.element('button');

Callers

nothing calls this directly

Calls 2

_createExpandButtonMethod · 0.95
expandMethod · 0.95

Tested by

no test coverage detected