Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Error in ngMocks under FF 19.0 #2125

mbielski opened this Issue · 2 comments

3 participants


This issue was found in angular-mocks.js version 1.1.3.

When attempting to mock the localStorage/sessionStorage functionality of the browser as described in this issue in Jasmine (jasmine/jasmine#299) an error is thrown in angular-mocks.js on like 1787 indicating that errorForStack is null. By checking to see if errorForStack is not null, the problem is solved:

Line 1787: if(e.stack && errorForStack) e.stack += '\n' + errorForStack.stack;

@btford btford closed this

As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.

Please try the newest versions of Angular (1.0.8 and 1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.



This is still an issue in angular-mocks.js version 1.3

For those who are interested, my current work around is just to set the localStorage data in beforeEach and then remove it in afterEach.

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.