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

Problem requiring sax.js from xmldom. Puzzled. #38

Open
coderextreme opened this issue Jul 21, 2017 · 1 comment
Open

Problem requiring sax.js from xmldom. Puzzled. #38

coderextreme opened this issue Jul 21, 2017 · 1 comment

Comments

@coderextreme
Copy link

coderextreme commented Jul 21, 2017

$ jjs xxx.js
Cannot load module sax LOAD_ERROR
./jvm-npm.js:109:8 SyntaxError: <function>:102:31 Missing close quote
                                var end = source.indexOf('>

===================================================================
xxx.js

load('./jvm-npm.js');
var x = require('sax');

===================================================================
https://github.com/jindw/xmldom/blob/master/sax.js

The sax.js file appears to be truncated.

@coderextreme
Copy link
Author

I've tracked this down to the pattern in useDelimiter("\A"). It only matches a 4096 byte long string. the files are long than that. I will do some experimentation, but it looks like a flaw in the JVM.

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

No branches or pull requests

1 participant