Support loading of jasmine more than once during a page load #249

Closed
wants to merge 1 commit into
from

2 participants

@coli

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
#247

To reproduce, have a page with something like

@infews

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?

@infews infews closed this Jul 7, 2012
@infews infews reopened this Jul 7, 2012
@infews

(sorry for the accidental close)

@coli

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...

@infews infews closed this May 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment