use-chromeutils-definelazygetter¶
Require use of ChromeUtils.defineLazyGetter
rather than XPCOMUtils.defineLazyGetter
.
Examples of incorrect code for this rule:¶
XPCOMUtils.defineLazyGetter(lazy, "textEncoder", function () {
return new TextEncoder();
});
Examples of correct code for this rule:¶
ChromeUtils.defineLazyGetter(lazy, "textEncoder", function () {
return new TextEncoder();
});