Skip to content

Commit

Permalink
Fix JSHint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wendelin committed Oct 10, 2014
1 parent 1a1b1af commit d1945db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
"node": true,
"eqeqeq": true,
"undef": true,
"bitwise": true,
"newcap": true,
"immed": true,
"browser": true,
"es3": true,
"camelcase": true,
"nonbsp": true,
"freeze": true,
"predef": {
"afterEach": false,
"beforeEach": false,
Expand Down
11 changes: 6 additions & 5 deletions error-stack-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@

var aArgs = Array.prototype.slice.call(arguments, 1);
var fToBind = this;
var noOp = function () {
var NoOp = function () {
};
var fBound = function () {
return fToBind.apply(this instanceof noOp && oThis ? this : oThis,
return fToBind.apply(this instanceof NoOp && oThis ? this : oThis,
aArgs.concat(Array.prototype.slice.call(arguments)));
};

noOp.prototype = this.prototype;
fBound.prototype = new noOp();
NoOp.prototype = this.prototype;
fBound.prototype = new NoOp();

return fBound;
};
Expand All @@ -44,11 +44,12 @@
}
var O = Object(this);
var len = O.length >>> 0;
var T;
if (typeof callback !== "function") {
throw new TypeError(callback + " is not a function");
}
if (arguments.length > 1) {
var T = thisArg;
T = thisArg;
}

var A = new Array(len);
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"type": "Public Domain",
"url": "https://github.com/stacktracejs/error-stack-parser/blob/master/LICENSE"
}],
"main": "./error-stack-parser.js"
"main": "./error-stack-parser.js",
"scripts": {
"test": "make clean test"
}
}

0 comments on commit d1945db

Please sign in to comment.