1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

XFA - Avoid an error when an exdata is a string (bug 1723114)

This commit is contained in:
Calixte Denizet 2021-07-29 14:27:17 +02:00
parent 4ad5c5d52a
commit 7bb5331087
3 changed files with 12 additions and 0 deletions

View file

@ -5905,6 +5905,9 @@ class Value extends XFAObject {
[$text]() {
if (this.exData) {
if (typeof this.exData[$content] === "string") {
return this.exData[$content].trim();
}
return this.exData[$content][$text]().trim();
}
for (const name of Object.getOwnPropertyNames(this)) {