在使用大型(500kb)字符串初始化 Automerge.Text 时,调用栈最大值已超出
作者: cgauld创建于 2022年6月30日更新于 2022年8月19日
你好! 我们使用了 Preview 6, 发现初始化 Automerge.Text 时,如下代码: doc.text = new Automerge.Text(largeString); 在使用 ~500kb 字符串时会出现以下错误堆栈: Uncaught (in promise) RangeError: Maximum call stack size exceeded at updateTextObject (...) at interpretPatch (...) at getValue (...) at applyProperties (...) at updateMapObject (...) at Context.interpretPatch [as applyPatch] (...) at Context.applyAtPath (...) at Context.setMapKey (...) at Object.set (...)
内容来源: automerge/automerge-classic