Skip to content

[codex] align WebCrypto non-extractable key errors#4302

Draft
andrewtdiz wants to merge 1 commit into
PerryTS:mainfrom
andrewtdiz:codex/node-crypto-webcrypto-nonextractable-error
Draft

[codex] align WebCrypto non-extractable key errors#4302
andrewtdiz wants to merge 1 commit into
PerryTS:mainfrom
andrewtdiz:codex/node-crypto-webcrypto-nonextractable-error

Conversation

@andrewtdiz
Copy link
Copy Markdown
Contributor

Refs #2518

Summary

  • change WebCrypto exportKey and wrapKey non-extractable CryptoKey rejections from InvalidAccessException to Node 26 InvalidAccessError
  • keep this limited to error-shape parity; no new WebCrypto algorithms or method surface

Verification

  • CARGO_TARGET_DIR=/tmp/perry-zlib-negative-baseline npm exec --yes --package=node@26 -- bash -lc './run_parity_tests.sh --suite node-suite --module crypto --filter cryptokey-usages-extractable'\n- CARGO_TARGET_DIR=/tmp/perry-zlib-negative-baseline npm exec --yes --package=node@26 -- bash -lc './run_parity_tests.sh --suite node-suite --module crypto --filter jwk-wrap-unwrap'\n- CARGO_TARGET_DIR=/tmp/perry-zlib-negative-baseline cargo check -p perry-stdlib --no-default-features --features crypto\n- cargo fmt --all -- --check\n- git diff --check\n- ./scripts/check_file_size.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant