You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop redundant buffers() overrides that just return [this.buffer()]
Source.prototype.buffers() returns [this.buffer()] and naturally picks
up subclass buffer() overrides through the prototype chain. The
overrides on RawSource, OriginalSource, PrefixSource, and
SourceMapSource simply repeated that same body, so remove them and let
the base implementation handle those classes. ConcatSource,
CachedSource, CompatSource, ReplaceSource, and SizeOnlySource keep
their overrides since they each carry distinct logic
(multi-buffer collection, caching, SourceLike delegation,
no-replacements pass-through, throwing).
Source.prototype.buffers() reverts from the inlined source()-based
implementation back to [this.buffer()], so subclass buffer()
optimizations (cached _valueAsBuffer in RawSource etc.) flow through
without duplication.
https://claude.ai/code/session_01EHhGq9PRFRGefVtwwasCqZ
0 commit comments