Skip to content

assert: accept undefined as message input

This is a follow up PR for #22695 but this is currently blocked by #22694. I'll remove the first commit as soon as #22695 lands.

This is important to allow any input value to be visible to the users in case the message is used to highlight the failing passed through input.

E.g., assert(/abc/.test(input), input) should highlight, that input is set to undefined.

Refs: #22695, #22694

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading