From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- dom/crypto/test/test-array.js | 2 +- dom/crypto/test/test-worker.js | 2 +- dom/crypto/test/test_WebCrypto.html | 4 ++-- dom/crypto/test/test_WebCrypto_ECDH.html | 2 +- dom/crypto/test/test_WebCrypto_JWK.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'dom/crypto') diff --git a/dom/crypto/test/test-array.js b/dom/crypto/test/test-array.js index 0d7f67433f..357694f9de 100644 --- a/dom/crypto/test/test-array.js +++ b/dom/crypto/test/test-array.js @@ -112,7 +112,7 @@ function WorkerTest(worker, name, test) { // We expect only boolean responses from the worker script. worker.onmessage = e => this.complete(e.data); - worker.onerror = e => this.complete(false); + worker.onerror = () => this.complete(false); }; var base = new Test(name, test); diff --git a/dom/crypto/test/test-worker.js b/dom/crypto/test/test-worker.js index 263877ad08..47a365a66f 100644 --- a/dom/crypto/test/test-worker.js +++ b/dom/crypto/test/test-worker.js @@ -31,7 +31,7 @@ function memcmp_complete(test, value) { }; } -function error(test) { +function error() { return function (x) { throw x; }; diff --git a/dom/crypto/test/test_WebCrypto.html b/dom/crypto/test/test_WebCrypto.html index 90da813880..aded1bdd91 100644 --- a/dom/crypto/test/test_WebCrypto.html +++ b/dom/crypto/test/test_WebCrypto.html @@ -56,7 +56,7 @@ TestArray.addTest( crypto.subtle.importKey("raw", tv.raw, alg, true, ["encrypt"]) .then( error(that), - complete(that, function(x) { return true; }) + complete(that, function() { return true; }) ); } ); @@ -982,7 +982,7 @@ TestArray.addTest( .then(doVerify) .then( error(that), - complete(that, function(x) { return true; }) + complete(that, function() { return true; }) ); } ); diff --git a/dom/crypto/test/test_WebCrypto_ECDH.html b/dom/crypto/test/test_WebCrypto_ECDH.html index 2d8f9bba28..8386d3c3dd 100644 --- a/dom/crypto/test/test_WebCrypto_ECDH.html +++ b/dom/crypto/test/test_WebCrypto_ECDH.html @@ -61,7 +61,7 @@ TestArray.addTest( function setKeyPair(x) { pair = x; } function doDerive(n) { - return function(x) { + return function() { return crypto.subtle.deriveBits({ name: "ECDH", public: pair.publicKey }, pair.privateKey, n * 8); }; } diff --git a/dom/crypto/test/test_WebCrypto_JWK.html b/dom/crypto/test/test_WebCrypto_JWK.html index 6e83a73d8d..4fa2af5dce 100644 --- a/dom/crypto/test/test_WebCrypto_JWK.html +++ b/dom/crypto/test/test_WebCrypto_JWK.html @@ -76,7 +76,7 @@ TestArray.addTest( function doVerify(x) { return crypto.subtle.verify(alg.name, x, tv.rsassa.sig256, tv.rsassa.data); } - function fail(x) { error(that); } + function fail() { error(that); } crypto.subtle.importKey("jwk", tv.rsassa.jwk_pub, alg, false, ["verify"]) .then( doVerify, fail ) -- cgit v1.2.3