Suppress getter-return errors in compatibility tests

This commit is contained in:
Bill Thornton 2020-02-26 01:23:28 -05:00
parent 23c3536ace
commit 75ac5ed8b2
2 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ define([], function () {
var supportsCaptureOption = false;
try {
var opts = Object.defineProperty({}, 'capture', {
// eslint-disable-next-line getter-return
get: function () {
supportsCaptureOption = true;
}

View File

@ -33,6 +33,7 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
var elem = document.createElement("div");
var opts = Object.defineProperty({}, "behavior", {
// eslint-disable-next-line getter-return
get: function () {
supportsScrollToOptions = true;
}