Re: minisphere 4.1.1
Reply #1295 –
That last ReferenceError you mentioned is harmless. sax.js is trying to load the built-in Node.js "stream" module, which of course fails. The error is caught and sax uses a fallback. SSJ always reports thrown errors, even if they are caught. If you're using Sphere Studio, caught errors will have a green checkmark next to them.
The FileStream error I do have to fix, though. Originally, with Sphere v2, you opened files like this:
var file = new FileStream(fileName, 'r');
However, since I wrote the xml module that has changed to:
var file = fs.open(fileName, 'r');
It seems that I never updated the xml module to reflect that, oops!