test: add test for setJumpList arguments (#41650)

test: add test for setJumpList arguments
This commit is contained in:
Shelley Vohr 2024-03-22 00:01:54 +01:00 committed by GitHub
parent 00e3445f8a
commit a32705fd30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 39 additions and 1 deletions

View file

@ -1281,7 +1281,7 @@ JumpListResult App::SetJumpList(v8::Local<v8::Value> val,
if (!delete_jump_list &&
!gin::ConvertFromV8(args->isolate(), val, &categories)) {
gin_helper::ErrorThrower(args->isolate())
.ThrowError("Argument must be null or an array of categories");
.ThrowTypeError("Argument must be null or an array of categories");
return JumpListResult::kArgumentError;
}