title: PhantomJS 2.1.1 Error
body: <p>I can't run my test with karma and phantomJS because of this error:</p>
  
  <blockquote>
    <p>PhantomJS 2.1.1 (Windows 7.0.0) ERROR
      SyntaxError: Use of reserved word 'class'</p>
  </blockquote>
  
  <p>Here is my config karma.conf.js:</p>
  
  <pre><code>module.exports = function (config) {
  config.set({
      basePath: '',
      frameworks: ['jasmine', '@angular/cli'],
      plugins: [
          require('karma-jasmine'),
          require('karma-jasmine-html-reporter'),
          require('karma-coverage-istanbul-reporter'),
          require('karma-phantomjs-launcher'),
          require('@angular/cli/plugins/karma')
      ],
      client: {
          clearContext: false // leave Jasmine Spec Runner output visible in browser
      },
      files: [
          { pattern: './src/test.ts', watched: false }
      ],
      preprocessors: {
          './src/test.ts': ['@angular/cli']
      },
      coverageIstanbulReporter: {
          reports: ['html', 'lcovonly'],
          fixWebpackSourcePaths: true
      },
      angularCli: {
          environment: 'dev'
      },
      reporters: config.angularCli &amp;&amp; config.angularCli.codeCoverage
          ? ['progress', 'coverage-istanbul']
          : ['progress', 'kjhtml'],
      port: 9876,
      colors: true,
      logLevel: config.LOG_DEBUG,
      autoWatch: false,
      browsers: ['PhantomJS'],
      singleRun: true
  });
  };
  </code></pre>
  
  <p>I updated angular to v5 and it's happening since then... I read to use karma webpack preprocessor but I'm not using webpack and why was it running before ? No clue.</p>
  
  <p>Thanks a lot if you have a tips or a response :)</p>