Skip to content

Commit

Permalink
fix promise require to bring in spec-compliant polyfill
Browse files Browse the repository at this point in the history
updated 'npm test' command to replace the --harmony-generators flag with --harmony, since the former is no longer valid as of node v4
  • Loading branch information
jon-hall committed Sep 13, 2015
1 parent 8b9bfa7 commit 2af096f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/suspend.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Promise = require('promise');
var Promise = require('promise/lib/es6-extensions');

/**
* Our suspend namespace, which doubles as an alias for `suspend.fn` (although
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"main": "lib/suspend.js",
"scripts": {
"test": "node ./node_modules/mocha/bin/mocha --harmony-generators --reporter list",
"test": "node ./node_modules/mocha/bin/mocha --harmony --reporter list",
"test-es5": "node test-es5/run.js"
},
"dependencies": {
Expand Down

0 comments on commit 2af096f

Please sign in to comment.