summaryrefslogtreecommitdiffstats
path: root/testing/specialpowers/content/WrapPrivileged.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /testing/specialpowers/content/WrapPrivileged.sys.mjs
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/specialpowers/content/WrapPrivileged.sys.mjs')
-rw-r--r--testing/specialpowers/content/WrapPrivileged.sys.mjs8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/specialpowers/content/WrapPrivileged.sys.mjs b/testing/specialpowers/content/WrapPrivileged.sys.mjs
index 5fe67a94e2..1db8a7d9f7 100644
--- a/testing/specialpowers/content/WrapPrivileged.sys.mjs
+++ b/testing/specialpowers/content/WrapPrivileged.sys.mjs
@@ -257,7 +257,7 @@ let SpecialPowersHandler = {
return Reflect.has(this.wrapped.get(target).obj, prop);
},
- get(target, prop, receiver) {
+ get(target, prop) {
let global = Cu.getGlobalForObject(this);
return wrapExceptions(global, () => {
let obj = waiveXraysIfAppropriate(this.wrapped.get(target).obj, prop);
@@ -266,7 +266,7 @@ let SpecialPowersHandler = {
});
},
- set(target, prop, val, receiver) {
+ set(target, prop, val) {
return wrapExceptions(Cu.getGlobalForObject(this), () => {
let obj = waiveXraysIfAppropriate(this.wrapped.get(target).obj, prop);
return Reflect.set(obj, prop, unwrapIfWrapped(val));
@@ -279,7 +279,7 @@ let SpecialPowersHandler = {
});
},
- defineProperty(target, prop, descriptor) {
+ defineProperty() {
throw new Error(
"Can't call defineProperty on SpecialPowers wrapped object"
);
@@ -332,7 +332,7 @@ let SpecialPowersHandler = {
return Cu.cloneInto(props, Cu.getGlobalForObject(this));
},
- preventExtensions(target) {
+ preventExtensions() {
throw new Error(
"Can't call preventExtensions on SpecialPowers wrapped object"
);