| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for the PR. Could you add a regression test please. |
Sorry, something went wrong.
Sorry, something went wrong.
|
@panva Thank you so much for that! I tried to setup nodejs locally to properly test it, but ran into many issues/errors and didn't have time to continue trying to get it working today. |
Sorry, something went wrong.
PR-URL: #40300 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
|
Landed in 28f711b |
Sorry, something went wrong.
|
@gc do you mind backporting this PR? It broke the v16.x build. thanks! |
Sorry, something went wrong.
|
@danielleadams i can help, which branch do I base off of and open a PR against? |
Sorry, something went wrong.
PR-URL: #40300 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
|
The test failed on v16.x-staging because the DOMException global doesn't exist there. diff --git a/test/parallel/test-webcrypto-ed25519-ed448.js b/test/parallel/test-webcrypto-ed25519-ed448.js
index a0d858a4ab..b18f3f9d3b 100644
--- a/test/parallel/test-webcrypto-ed25519-ed448.js
+++ b/test/parallel/test-webcrypto-ed25519-ed448.js
@@ -1,3 +1,4 @@
+// Flags: --expose-internals
'use strict';
const common = require('../common');
@@ -11,6 +12,9 @@ const {
webcrypto: { subtle }
} = require('crypto');
+const { internalBinding } = require('internal/test/binding');
+const { DOMException } = internalBinding('messaging');
+
async function generateKey(namedCurve) {
return subtle.generateKey(
{ |
Sorry, something went wrong.
PR-URL: #40300 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
| Back | FazBrowse Home | New Git URL |
This line is incorrectly trying to do throw new lazyDOMException, causing it to throw the wrong error.
Reproduction:
node:internal/crypto/ec:461 throw new lazyDOMException(`Hash is not permitted for ${name}`); ^ TypeError: lazyDOMException is not a constructor ←[90m at Object.ecdsaSignVerify (node:internal/crypto/ec:461:15)←[39m ←[90m at signVerify (node:internal/crypto/webcrypto:609:10)←[39m ←[90m at SubtleCrypto.sign (node:internal/crypto/webcrypto:623:10)←[39m at t (C:\dev\redacted\test.js:12:46)