Add parseFileSync and parseStringSync. #25

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@trotter

Having a synchronous version makes some operations in
client libraries easier.

@trotter trotter Add parseFileSync and parseStringSync.
Having a synchronous version makes some operations in
client libraries easier.
d5a5153
@astro

+1

The parser doesn't do I/O, therefore it is unnecessary that it runs asynchronously by default. Actually, all you need to do is to remove the setTimeout(…, 0) in SaxParser.prototype.parseString.

@robrighter
Owner

Removed the setTimeout all together.

@robrighter robrighter closed this Sep 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment