spion/async-compare — pull request #4 by afri (2013-09-02 17:38:30+00:00)
Title: less invasive stratifiedjs implementation

Hi there,

Here's a less invasive Stratifiedjs implementation than Tim's (https://github.com/spion/async-compare/pull/3).
In addition to including a compiled version dst-stratifiedjs.js, I also need to add a compiled version of the fakes for sjs. This is because SJS's `require` implementation is fully asynchronous; if we were to load in an uncompiled SJS module from dst-stratifiedjs-014.js, then all the harness' loader code would need to be asynchronized, similar to how Tim has done it.

The only "invasive" part of the patch is untangling the stack information: SJS stores the stack in a `__oni_stack` variable on Exceptions, not on `stack`. This is because we aim to be cross-platform (nodejs + browsers).

I also fixed up the matching of lines in the stack to accept both references to the compiled and source files. (I think most of the libs you're comparing report _source_ files rather than compiled files in their stack traces - this is also what SJS is doing).

Cheers,
Alex (Disclaimer: I also work on SJS alongside Tim :-) )