title: grunt-karma RangeError Maximum error
body: <p>Recently I've wanted to start using <a href="http://gruntjs.com/" rel="nofollow">Grunt</a> in order to improve my development workflow. Although I've had some trouble while Grunt up and running. After creating a <code>package.json</code> file and a <code>Grunt file.js</code> I've tried running a simple test with grunt-karma with no luck. </p>
  
  <p>All I receive is the error </p>
  
  <p><code>Loading "grunt-karma.js" tasks...ERROR</code></p>
  
  <p><code>RangeError: Maximum call stack size exceeded</code></p>
  
  <p>I am running node version 10.12
  with grunt-cli &amp; grunt versions 0.1.9 and 0.4.1 respectively. </p>
  
  <p>Below is my package file with all of my dev dependancies and my grunt file. </p>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>{
  "name": "crudangular",
  "version": "0.0.1",
  "devDependencies": {
      "grunt": "~0.4.1",
      "karma": "~0.8.6",
      "grunt-karma": "~0.4.4",
      "phantomjs": "~1.9.1-0"
   }
  }
  </code></pre>
  
  <p><strong>Gruntfile.js</strong></p>
  
  <pre><code>module.exports = function(grunt){
  grunt.initConfig({
      pkg: grunt.file.readJSON('package.json'),
      karma: {
          unit:{
              configFile: 'karma.conf.js'
          }
      }
  });
  grunt.loadNpmTasks('grunt-karma');
  grunt.registerTask('default',['karma']);
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated. 
  Thanks in advance. </p>