grafana/k6 · error
not implemented
Error message
not implemented
What it means
Error "not implemented" thrown in grafana/k6.
Source
Thrown at internal/js/modules/k6/webcrypto/subtle_crypto.go:1044
// The `key` parameter is the key to export, as a CryptoKey object.
// The `wrappingKey` parameter is the key to use to encrypt the exported key. The key **must** have
// the `wrapKey` usage flag set.
// The `wrapAlgorithm` parameter identifies the algorithm to use to encrypt the exported key, and should be one of:
// - an `SubtleCrypto.RSAOaepParams` object
// - an `SubtleCrypto.AesCtrParams` object
// - an `SubtleCrypto.AesCbcParams` object
// - an `SubtleCrypto.AesGcmParams` object
// - for the AES-KW algorithm, pass the string "AES-KW", or an object of the form `{ name: "AES-KW" }`
//
//nolint:revive // remove the nolint directive when the method is implemented
func (sc *SubtleCrypto) WrapKey(
format KeyFormat,
key sobek.Value,
wrappingKey sobek.Value,
wrapAlgorithm sobek.Value,
) (*sobek.Promise, error) {
// TODO: implementation
return nil, errors.New("not implemented")
}
// UnwrapKey "unwraps" a key.
//
// This means that it takes as its input a key that has been exported and then
// encrypted (also called "wrapped"). It decrypts the key and then imports it, returning
// a `CryptoKey` object that can be used in the Web Crypto API.
//
// As with `SubtleCrypto.ImportKey`, you specify the key's import format and other attributes
// of the key to import details such as whether it is extractable, and which operations it can be used for.
//
// But because `SubtleCrypto.UnwrapKey` also decrypts the key to be imported, you also need to pass
// in the key that must be used to decrypt it. This is sometimes called the "unwrapping key".
//
// The inverse of `SubtleCrypto.UnwrapKey` is `SubtleCrypto.WrapKey`: while `SubtleCrypto.UnwrapKey` is composed
// of decrypt + import, `Subtle.WrapKey` is composed of encrypt + export.
//
// It returns a Promise that fulfills with the unwrapped key as a CryptoKey object.View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/js/modules/k6/webcrypto/subtle_crypto.go:1044 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/6d3b59fcf574c39b.
Report an issue: GitHub.