MCPcopy Create free account
hub / github.com/ampproject/amphtml / write

Method write

src/utils/dom-writer.js:114–123  ·  view source on GitHub ↗

@override

(chunk)

Source from the content-addressed store, hash-verified

112
113 /** @override */
114 write(chunk) {
115 if (this.eof_) {
116 throw new Error('closed already');
117 }
118 if (chunk) {
119 this.parser_.write(/** @type {string} */ (chunk));
120 }
121 this.schedule_();
122 return this.success_;
123 }
124
125 /** @override */
126 close() {

Callers

nothing calls this directly

Calls 2

schedule_Method · 0.95
writeMethod · 0.45

Tested by

no test coverage detected