ensure that content is iterable
This commit is contained in:
parent
0a9b673e27
commit
609dbf6a81
@ -240,7 +240,7 @@ class TextSourceElement {
|
||||
|
||||
let consumed = 0;
|
||||
let content = '';
|
||||
for (let currentChar of this.content) {
|
||||
for (let currentChar of this.content || '') {
|
||||
if (consumed >= length) {
|
||||
break;
|
||||
} else if (!currentChar.match(IGNORE_TEXT_PATTERN)) {
|
||||
|
Loading…
Reference in New Issue
Block a user