salsita/xml2js-schema — comment on commit 015aca8b5586b8ea9ec316028338505b63328d28
File: tests/js/specs/test-xml2js.js line 80
By roman-kaspar:

this code seems asynchronous, while all the test cases are synchronous...
are you sure the Parser.parseString() and its internals, including invocation of the callback registered here are 100% synchronous as used in the test cases?
after more code checking:
both xml2js code and sax parser code seem to be using emit() events, and that doesn't seem to be synchronous...
so I am actually wondering how come the test cases pass...