Skip to content

Commit 3ceadc1

Browse files
mattrobenoltbenvinegar
authored andcommitted
Fix normalized.function call in IE8
eslint by default wanted to change this to .function instead of the correct ['function'], so this also changes the rule. Fixes GH-498
1 parent e3f4e88 commit 3ceadc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dot-notation": [
1515
2,
1616
{
17-
"allowKeywords": true
17+
"allowKeywords": false
1818
}
1919
],
2020
"eqeqeq": [

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ Raven.prototype = {
791791
// first we check the global includePaths list.
792792
!!this._globalOptions.includePaths.test && !this._globalOptions.includePaths.test(normalized.filename) ||
793793
// Now we check for fun, if the function name is Raven or TraceKit
794-
/(Raven|TraceKit)\./.test(normalized.function) ||
794+
/(Raven|TraceKit)\./.test(normalized['function']) ||
795795
// finally, we do a last ditch effort and check for raven.min.js
796796
/raven\.(min\.)?js$/.test(normalized.filename)
797797
);

0 commit comments

Comments
 (0)