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 18afd47 commit 619edd0Copy full SHA for 619edd0
jsbits/text.js
@@ -37,11 +37,12 @@ function h$textFromString(s) {
37
38
function h$lazyTextToString(txt) {
39
var s = '';
40
- while(CONSTR_TAG(txt) === 2) {
41
- var h = LAZY_TEXT_CHUNK_HEAD(txt);
42
- s += h$textToString(TEXT_ARR(h), TEXT_OFF(h), TEXT_LEN(h));
43
- txt = LAZY_TEXT_CHUNK_TAIL(txt);
+ while(LAZY_TEXT_IS_CHUNK(txt)) {
+ var head = LAZY_TEXT_CHUNK_HEAD(txt);
+ s += h$textToString(DATA_TEXT_ARRAY(head), DATA_TEXT_OFFSET(head), DATA_TEXT_LENGTH(head));
+ txt = LAZY_TEXT_CHUNK_TAIL(txt);
44
}
45
+ return s;
46
47
48
function h$safeTextFromString(x) {
0 commit comments