We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4df623 commit cf8a7f1Copy full SHA for cf8a7f1
addon/mongocrypt.cc
@@ -627,6 +627,9 @@ Value MongoCrypt::MakeExplicitEncryptionContext(const CallbackInfo& info) {
627
std::unique_ptr<mongocrypt_binary_t, MongoCryptBinaryDeleter> binaryValue(
628
Uint8ArrayToBinary(valueBuffer));
629
630
+ if (!options.Has("expressionMode") || !options.Get("expressionMode").IsBoolean()) {
631
+ throw TypeError::New(Env(), "`rangeOptions` must be provided if `algorithm` is set to Range");
632
+ }
633
const bool isExpressionMode = options.Get("expressionMode").ToBoolean();
634
635
const bool status =
0 commit comments