I'm using a new instance of Parser and the first time I execute it it works ok, but the second time it hangs. I assumed using a new instance would create a clean state but looks like I need to reset some global state?
This is what I'm currently using:
const Parser = require('myparser').Parser
....
//This will run multiple times
const p = new Parser();
p.parse(...)
I'm using a new instance of Parser and the first time I execute it it works ok, but the second time it hangs. I assumed using a new instance would create a clean state but looks like I need to reset some global state?
This is what I'm currently using: