diff options
Diffstat (limited to 'js/xpconnect/tests/chrome/test_xrayToJS.xhtml')
-rw-r--r-- | js/xpconnect/tests/chrome/test_xrayToJS.xhtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/xpconnect/tests/chrome/test_xrayToJS.xhtml b/js/xpconnect/tests/chrome/test_xrayToJS.xhtml index cc009a2d55..9943055aea 100644 --- a/js/xpconnect/tests/chrome/test_xrayToJS.xhtml +++ b/js/xpconnect/tests/chrome/test_xrayToJS.xhtml @@ -360,7 +360,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681 return typedArrayClasses.includes(classname); } - function propertyIsGetter(obj, name, classname) { + function propertyIsGetter(obj, name) { return !!Object.getOwnPropertyDescriptor(obj, name).get; } @@ -800,7 +800,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681 checkThrows(function() { trickyObject.hasOwnProperty = 33; }, /shadow/, "Should reject shadowing of pre-existing inherited properties over Xrays"); - checkThrows(function() { Object.defineProperty(trickyObject, 'rejectedProp', { get() {}}); }, + checkThrows(function() { Object.defineProperty(trickyObject, 'rejectedProp', { get() { return undefined; }}); }, /accessor property/, "Should reject accessor property definition"); } @@ -1058,7 +1058,7 @@ for (var prop of props) { is(t.delete(null), true, "Key null can be deleted"); let values = []; - t.forEach((value, key) => values.push(value)); + t.forEach((value) => values.push(value)); is(values.toString(), "a,5", "forEach enumerates values correctly"); t.clear(); |