MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / constructor

Method constructor

benchmark/data-min.js:119–126  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

117 : typeof Buffer == 'function' && (w = (l) => Buffer.from(l, 'utf-8').toString('base64'));
118class b {
119 constructor(t) {
120 ((this.version = 3),
121 (this.file = t.file),
122 (this.sources = t.sources),
123 (this.sourcesContent = t.sourcesContent),
124 (this.names = t.names),
125 (this.mappings = k(t.mappings)));
126 }
127 toString() {
128 return JSON.stringify(this);
129 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected