From 1450da4168854c59ac082026bb3360cef4ec6e78 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 16 Oct 2021 11:49:24 +0200 Subject: [PATCH] Fix a `xfaFaxtory` typo in the shadowing in the `PDFDocument.xfaFactory` getter With this typo the shadowing doesn't actually work, which causes these checks to be unnecessarily repeated. In this particular case it didn't have a significant performance impact, however we should definately fix this nonetheless. --- src/core/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/document.js b/src/core/document.js index 9262a0cba..02161e2c1 100644 --- a/src/core/document.js +++ b/src/core/document.js @@ -892,7 +892,7 @@ class PDFDocument { const data = this.xfaData; return shadow(this, "xfaFactory", data ? new XFAFactory(data) : null); } - return shadow(this, "xfaFaxtory", null); + return shadow(this, "xfaFactory", null); } get isPureXfa() {