summaryrefslogtreecommitdiffstats
path: root/toolkit/components/promiseworker/tests/xpcshell
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/promiseworker/tests/xpcshell')
-rw-r--r--toolkit/components/promiseworker/tests/xpcshell/data/worker.js2
-rw-r--r--toolkit/components/promiseworker/tests/xpcshell/data/worker.mjs2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/promiseworker/tests/xpcshell/data/worker.js b/toolkit/components/promiseworker/tests/xpcshell/data/worker.js
index 94b6dd17ad..d9939bd163 100644
--- a/toolkit/components/promiseworker/tests/xpcshell/data/worker.js
+++ b/toolkit/components/promiseworker/tests/xpcshell/data/worker.js
@@ -43,7 +43,7 @@ var Agent = {
return args;
},
- throwError(msg, ...args) {
+ throwError(msg) {
throw new Error(msg);
},
};
diff --git a/toolkit/components/promiseworker/tests/xpcshell/data/worker.mjs b/toolkit/components/promiseworker/tests/xpcshell/data/worker.mjs
index 98a4b0ee5b..91b27ac8f1 100644
--- a/toolkit/components/promiseworker/tests/xpcshell/data/worker.mjs
+++ b/toolkit/components/promiseworker/tests/xpcshell/data/worker.mjs
@@ -30,7 +30,7 @@ var Agent = {
return args;
},
- throwError(msg, ...args) {
+ throwError(msg) {
throw new Error(msg);
},
};