提交 3ae4865d 编写于 作者: I isidor

fixes #9824

上级 825a1e71
......@@ -256,7 +256,7 @@ export abstract class ExpressionContainer implements debug.IExpressionContainer
// There are a lot of children, create fake intermediate values that represent chunks #9537
const numberOfChunks = this.indexedVariables / ExpressionContainer.CHUNK_SIZE;
for (let i = 0; i < numberOfChunks; i++) {
const chunkSize = (i < numberOfChunks - 1) ? ExpressionContainer.CHUNK_SIZE : this.indexedVariables % ExpressionContainer.CHUNK_SIZE;
const chunkSize = Math.min(ExpressionContainer.CHUNK_SIZE, this.indexedVariables - i * ExpressionContainer.CHUNK_SIZE);
const chunkName = `${i * ExpressionContainer.CHUNK_SIZE}..${i * ExpressionContainer.CHUNK_SIZE + chunkSize - 1}`;
childrenArray.push(new Variable(this, this.reference, chunkName, '', null, chunkSize, null, true, i));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册