MCPcopy Create free account
hub / github.com/breck7/scroll / _isBlobParser

Method _isBlobParser

external/.scrollLibs.js:19636–19639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19634 return this.get(ParsersConstants.baseParser) === ParsersConstants.errorParser
19635 }
19636 _isBlobParser() {
19637 // Do not check extended classes. Only do once.
19638 return this._getFromExtended(ParsersConstants.baseParser) === ParsersConstants.blobParser
19639 }
19640 get errorMethodToJavascript() {
19641 if (this._isBlobParser()) return "getErrors() { return [] }" // Skips parsing subparticles for perf gains.
19642 if (this._isErrorParser()) return "getErrors() { return this._getErrorParserErrors() }"

Callers 4

parserAsJavascriptMethod · 0.95

Calls 1

_getFromExtendedMethod · 0.80

Tested by

no test coverage detected