diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /testing/specialpowers/content/WrapPrivileged.sys.mjs | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 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.mjs | 8 |
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" ); |