From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- js/xpconnect/tests/chrome/test_xrayToJS.xhtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/xpconnect/tests/chrome/test_xrayToJS.xhtml') 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(); -- cgit v1.2.3