You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QUnit.log(function(obj){// What is this I don’t evenif(obj.message==='[object Object], undefined:undefined'){return;}// Parse some stuff before sending it.varactual=QUnit.jsDump.parse(obj.actual);varexpected=QUnit.jsDump.parse(obj.expected);// Send it.sendMessage('qunit.log',obj.result,actual,expected,obj.message,obj.source);});
I think it's a bad idea to parse (via QUnit.jsDump.parse) all objects being passed into QUnit's methods (like equal).
In my case this code results OutOfMemory due to complexity and recursion in passed objects.
The text was updated successfully, but these errors were encountered:
We've encountered a problem with this at work too. Not an out-of-memory, but severe slowness. Tests that take ~150ms to run in Chrome are taking ~23sec to run using grunt-contrib-qunit.
I've forked grunt-contrib-qunit and added a fix based on 0.4.0. If I get around to it, I'll reapply my fix to master and submit a pull request. Otherwise, the fix is trivial and can be easily applied by anyone.
The plugin injects bridge.js script into PhantomJS for tests execution (here is it: https://github.com/gruntjs/grunt-contrib-qunit/blob/master/phantomjs/bridge.js)
There is such code there:
I think it's a bad idea to parse (via QUnit.jsDump.parse) all objects being passed into QUnit's methods (like equal).
In my case this code results OutOfMemory due to complexity and recursion in passed objects.
The text was updated successfully, but these errors were encountered: