assert: remove deprecated getFunction() usage
The method is meant to be removed by the V8 team. It is not a critical functionality that is removed, therefore no alternative is checked for either.
Refs: https://bugs.chromium.org/p/v8/issues/detail?id=9421
@nodejs/v8 PTAL