Disable linter warning for Error prototype method

This commit is contained in:
Max Brunsfeld
2015-10-16 15:27:37 -07:00
parent c36b4bd169
commit f31328baec

View File

@@ -168,14 +168,14 @@ Object.defineProperty(Error, 'prepareStackTrace', {
})
// Enable Grim to access the raw stack without reassigning Error.prepareStackTrace
Error.prototype.getRawStack = function () {
Error.prototype.getRawStack = function () { // eslint-disable-line no-extend-native
prepareStackTrace = getRawStack
var result = this.stack
prepareStackTrace = sourceMapPrepareStackTrace
return result
}
function getRawStack (error, stack) {
function getRawStack (_, stack) {
return stack
}