We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ea4ca5 commit 7043a51Copy full SHA for 7043a51
src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts
@@ -183,7 +183,7 @@ export class AutoSizeVirtualScrollStrategy implements VirtualScrollStrategy {
183
*/
184
updateBufferSize(minBufferPx: number, maxBufferPx: number) {
185
if (maxBufferPx < minBufferPx) {
186
- throw 'CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx';
+ throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');
187
}
188
this._minBufferPx = minBufferPx;
189
this._maxBufferPx = maxBufferPx;
0 commit comments