MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / append

Method append

ui/plugins/ui/jasmine/jasmine.js:6880–6894  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6878 }
6879
6880 append(value) {
6881 // This check protects us from the rare case where an object has overriden
6882 // `toString()` with an invalid implementation (returning a non-string).
6883 if (typeof value !== "string") {
6884 value = Object.prototype.toString.call(value)
6885 }
6886
6887 const result = truncate(value, j$.MAX_PRETTY_PRINT_CHARS - this.length)
6888 this.length += result.value.length
6889 this.stringParts.push(result.value)
6890
6891 if (result.truncated) {
6892 throw new MaxCharsReachedError()
6893 }
6894 }
6895 }
6896
6897 function hasCustomToString(value) {

Callers 15

emitScalarMethod · 0.95
emitStringMethod · 0.95
emitArrayMethod · 0.95
emitSetMethod · 0.95
emitMapMethod · 0.95
emitObjectMethod · 0.95
emitTypedArrayMethod · 0.95
emitDomElementMethod · 0.95
formatPropertyMethod · 0.95
fake_postMethod · 0.80
configure_envFunction · 0.80

Calls 2

truncateFunction · 0.85
pushMethod · 0.80

Tested by 1

fake_postMethod · 0.64