Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Jasmine goes into infinite loop if loaded twice #247

Closed
coli opened this Issue · 4 comments

3 participants

@coli

If loaded more than once, jasmine.Clock.real will no longer contain the real methods, and any call to say setTimeout will call itself and goes into an infinite loop.

This happens in Safari, and maybe IE as well.

(We are using js-test-driver + code coverage, which leads to Jasmine getting loaded twice, we have no control over it...)

@coli

The code I have which fixes this is at https://github.com/pivotal/jasmine/pull/249/files , it prabably doesn't handle commonJS correctly as it assumes window to be present

@infews
Owner

What's the use case for loading Jasmine twice?

@coli

It turns out to be a bug of js-test-runner

@ragaskar
Owner

Ok, closing then. It should probably be fixed on that side.

@ragaskar ragaskar closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.