Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce xmllint to ~2MB #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Programmierschmied
Copy link

…e0322acb60868750697ca03aab

I just adjust some parameter in the scripts. Maybe you will like it. Webassembly isn't supported by every browser and won't needed anymore.
--with-minimum will reduce xmllint to ~2MB.

@kondr1
Copy link

kondr1 commented Jul 24, 2019

Uncaught (in promise) TypeError: Module.intArrayFromString is not a function
at Module.preRun (xml.js:17)
at callRuntimeCallbacks (xml.js:17)
at preRun (xml.js:17)
at run (xml.js:31)
at Object.xmllint.validateXML (xml.js:31)
at CheckInterface.getInterface.then.xsd (VM240 add_interface.aspx:172)

@Programmierschmied
Copy link
Author

Hello kondr1,

this is a general problem of the project.
You have to define the function Module['intArrayFromString'] = intArrayFromString before run(); function in the bottom of file to fix it.

Copy link
Contributor

@xgqfrms xgqfrms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants