Skip to content

Instantly share code, notes, and snippets.

@robmadole
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robmadole/ec99556deb2213ded9e7 to your computer and use it in GitHub Desktop.
Save robmadole/ec99556deb2213ded9e7 to your computer and use it in GitHub Desktop.
ES6ify causes a crash on Travis-CI PhantomJS 1.9.8

PhantomJS issue issue 12792

ariya/phantomjs#12792

Stack trace is at https://gist.github.com/robmadole/2abdb543c46dc691cbe9.

To reproduce

  1. npm install
  2. grunt

Most of the time

Running "jasmine:specs" (jasmine) task
Testing jasmine specs via PhantomJS


PhantomJS threw an error:ERROR
>> PhantomJS has crashed. Please read the crash reporting guide at
>> https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a
>> bug report at https://github.com/ariya/phantomjs/issues/new with the
>> crash dump file attached:
>> /tmp/1F760F5C-1424-4902-B6A8-0A8EC8919EDB.dmp 0 [ 'PhantomJS has
>> crashed. Please read the crash reporting guide at
>> https://github.com/ariya/phantomjs/wiki/Crash-Reporting and file a
>> bug report at https://github.com/ariya/phantomjs/issues/new with the
>> crash dump file attached:
>> /tmp/1F760F5C-1424-4902-B6A8-0A8EC8919EDB.dmp' ]
Warning: PhantomJS exited unexpectedly with exit code 1. Use --force to
continue.

Aborted due to warnings.

I've also seen

Running "jasmine:specs" (jasmine) task
Testing jasmine specs via PhantomJS

>> Error: ModuleEvaluationError: '1,95' is not a function (evaluating
>> 'registerPolyfill(polyfillMap)') in
>> traceur-runtime@0.0.72/src/runtime/polyfills/Map at
>> node_modules/es6ify/node_modules/traceur/bin/traceur-runtime.js:797
>> node_modules/es6ify/node_modules/traceur/bin/traceur-runtime.js:854
>> node_modules/es6ify/node_modules/traceur/bin/traceur-runtime.js:1355
 Jasmine__TopLevel__Suite
   Dummy spec
     ✓ will see if PhantomJS crashes

1 spec in 0.004s.
>> 0 failures

Done, without errors.
var es6ify = require('es6ify');
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
specs: {
src: [es6ify.runtime],
options: {
specs: '*Spec.js'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('default', ['jasmine']);
};
{
"name": "es69fy-phantomjs-crash",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jasmine": "^0.8.1",
"es6ify": "^1.5.1"
}
}
describe('Dummy spec', function () {
it('will see if PhantomJS crashes', function () {
expect(true).toBe(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment