1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Move the encodeToXmlString helper function to src/core/core_utils.js

With the previous patch this function is now *only* accessed on the worker-thread, hence it's no longer necessary to include it in the *built* `pdf.js` file.
This commit is contained in:
Jonas Jenwald 2021-02-16 14:13:51 +01:00
parent b66f294f64
commit d366bbdf51
5 changed files with 62 additions and 64 deletions

View file

@ -16,7 +16,7 @@
// The code for XMLParserBase copied from
// https://github.com/mozilla/shumway/blob/16451d8836fa85f4b16eeda8b4bda2fa9e2b22b0/src/avm2/natives/xml.ts
import { encodeToXmlString } from "../shared/util.js";
import { encodeToXmlString } from "./core_utils.js";
const XMLParserErrorCode = {
NoError: 0,