Skip to content

Commit d1945db

Browse files
author
Eric Wendelin
committed
Fix JSHint warnings.
1 parent 1a1b1af commit d1945db

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.jshintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88
"node": true,
99
"eqeqeq": true,
1010
"undef": true,
11-
"bitwise": true,
1211
"newcap": true,
1312
"immed": true,
1413
"browser": true,
1514
"es3": true,
1615
"camelcase": true,
1716
"nonbsp": true,
18-
"freeze": true,
1917
"predef": {
2018
"afterEach": false,
2119
"beforeEach": false,

error-stack-parser.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
var aArgs = Array.prototype.slice.call(arguments, 1);
2424
var fToBind = this;
25-
var noOp = function () {
25+
var NoOp = function () {
2626
};
2727
var fBound = function () {
28-
return fToBind.apply(this instanceof noOp && oThis ? this : oThis,
28+
return fToBind.apply(this instanceof NoOp && oThis ? this : oThis,
2929
aArgs.concat(Array.prototype.slice.call(arguments)));
3030
};
3131

32-
noOp.prototype = this.prototype;
33-
fBound.prototype = new noOp();
32+
NoOp.prototype = this.prototype;
33+
fBound.prototype = new NoOp();
3434

3535
return fBound;
3636
};
@@ -44,11 +44,12 @@
4444
}
4545
var O = Object(this);
4646
var len = O.length >>> 0;
47+
var T;
4748
if (typeof callback !== "function") {
4849
throw new TypeError(callback + " is not a function");
4950
}
5051
if (arguments.length > 1) {
51-
var T = thisArg;
52+
T = thisArg;
5253
}
5354

5455
var A = new Array(len);

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@
3434
"type": "Public Domain",
3535
"url": "https://github.com/stacktracejs/error-stack-parser/blob/master/LICENSE"
3636
}],
37-
"main": "./error-stack-parser.js"
37+
"main": "./error-stack-parser.js",
38+
"scripts": {
39+
"test": "make clean test"
40+
}
3841
}

0 commit comments

Comments
 (0)