Skip to content

Commit 7043a51

Browse files
authored
fix(cdk-experimental/scrolling): throw error rather than string (#26736)
1 parent 5ea4ca5 commit 7043a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class AutoSizeVirtualScrollStrategy implements VirtualScrollStrategy {
183183
*/
184184
updateBufferSize(minBufferPx: number, maxBufferPx: number) {
185185
if (maxBufferPx < minBufferPx) {
186-
throw 'CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx';
186+
throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');
187187
}
188188
this._minBufferPx = minBufferPx;
189189
this._maxBufferPx = maxBufferPx;

0 commit comments

Comments
 (0)