mozilla/source-map — pull request #8 by johnjbarton (2012-02-27 23:05:40+00:00)
Title: Test case for issue 5

https://github.com/mozilla/source-map/pull/5

I went back to master branch, created a new branch, added two files,
The test driver for browser case:
test/run-tests-in-browser-global.html
A quicky implementation of assert because I don't see one in the project:
test/assert.js

I can't figure out how to get this case to work with the master branch code. If I follow the model of run-tests.js, then I will use require() to load the lib and test files, then run the tests. However, this means that the access to the lib is asynchronous, and consequently any client of the lib also must be asynchronous. The compiler I am working with is not set up for asynchronous use. So I'm stuck.

Perhaps there is another way to load the code into the browser synchronously using the master branch?

jjb