Hi, this prabably doesn't handle the commonJS case correctly.
But this is the change I've made to support loading jasmin.js more than once for a single page.
This fixes the issue where jasmine goes into an infinite loop on the timeout methods
To reproduce, have a page with something like
Support loading of jasmine more than once during a page load
If you use jasmine.getGlobal() instead of window, you'd solve the non-browser case. But do you have a spec to show this failing/passing?
(sorry for the accidental close)
Hi, the spec would have to load jasmine.js twice, then call setTimeout, and it'd get a max stack exceeded error in the console, not sure how to write one...