Skip to content

Conversation

@Keroosha
Copy link
Contributor

Fixes #2322

return Object.setPrototypeOf(response, AuthenticatorAttestationResponse.prototype);
// Prevent Illegal invocation error
const responseWithProto = Object.setPrototypeOf(response, AuthenticatorAttestationResponse.prototype);
responseWithProto.getPublicKey = () => null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not define these directly to the response above?

Copy link
Contributor Author

@Keroosha Keroosha Aug 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can merge it with object initialization, yeah

Add `?` and change the object order.
@varjolintu varjolintu self-requested a review October 5, 2024 05:50
@varjolintu varjolintu merged commit 928ed65 into keepassxreboot:develop Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Illegal Invocation error on getPublicKey and getPublicKeyAlgorithm calls

2 participants