mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1251916 - Use standard JavaScript features in toolkit/components/passwordmgr to pass eslint checks: ignore statements which eslint regards as native reassignments. r=MattN
It treats Assert, is and ok as natives. eslint rule: http://eslint.org/docs/rules/no-native-reassign MozReview-Commit-ID: JzwQ37Y97jJ --HG-- extra : rebase_source : aac538173662c5cbd2fb62c557a8f145fdd6b77a
This commit is contained in:
parent
bf2bcbd4d8
commit
4f4fb2a030
@ -29,7 +29,7 @@ var Assert = null;
|
||||
|
||||
this.LoginTestUtils = {
|
||||
set Assert(assert) {
|
||||
Assert = assert;
|
||||
Assert = assert; // eslint-disable-line no-native-reassign
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -289,7 +289,7 @@ if (this.addMessageListener) {
|
||||
var SpecialPowers = { Cc, Ci, Cr, Cu, };
|
||||
var ok, is;
|
||||
// Ignore ok/is in commonInit since they aren't defined in a chrome script.
|
||||
ok = is = () => {};
|
||||
ok = is = () => {}; // eslint-disable-line no-native-reassign
|
||||
|
||||
Cu.import("resource://gre/modules/Task.jsm");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user