crypto: allow unbound SubtleCrypto.supports · nodejs/node@a855a46 · GitHub
Skip to content

Commit a855a46

Browse files
panvaaduh95
authored andcommitted
crypto: allow unbound SubtleCrypto.supports
Static Web IDL operations do not require an interface receiver. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: #66237 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 4a72c1d commit a855a46

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎lib/internal/crypto/webcrypto.js‎

Lines changed: 0 additions & 1 deletion

‎test/parallel/test-webcrypto-constructors.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const notSubtle = Reflect.construct(function() {}, [], SubtleCrypto);
142142
// Test SubtleCrypto.supports
143143
{
144144
assert.throws(() => SubtleCrypto.supports.call(undefined), {
145-
name: 'TypeError', code: 'ERR_INVALID_THIS',
145+
name: 'TypeError', code: 'ERR_MISSING_ARGS',
146146
});
147147
}
148148

Lines changed: 14 additions & 0 deletions

0 commit comments

Comments
 (0)