Skip to content

Commit 852c5c1

Browse files
committed
added use strict to help istanbul not freak out over let and const in node v4
1 parent c10a7f7 commit 852c5c1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎lib/UseStrictPlugin.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
MIT License http://www.opensource.org/licenses/mit-license.php
33
Author Tobias Koppers @sokra
44
*/
5+
"use strict"
6+
57
const ConstDependency = require("./dependencies/ConstDependency");
68
const NullFactory = require("./NullFactory");
79

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"lint": "eslint lib bin hot",
9494
"beautify-lint": "beautify-lint 'lib/**/*.js' 'hot/**/*.js' 'bin/**/*.js' 'benchmark/*.js' 'test/*.js'",
9595
"nsp": "nsp check --output summary",
96-
"cover": "istanbul cover -x '**/*.runtime.js' node_modules/mocha/bin/_mocha",
96+
"cover": "node --harmony ./node_modules/.bin/istanbul cover -x '**/*.runtime.js' node_modules/mocha/bin/_mocha",
9797
"beautify": "beautify-rewrite 'lib/**/*.js' 'hot/**/*.js' 'bin/**/*.js' 'benchmark/*.js' 'test/*.js'",
9898
"publish-patch": "npm run lint && npm run beautify-lint && mocha && npm version patch && git push && git push --tags && npm publish"
9999
}

0 commit comments

Comments
 (0)