A class that extends Function is not getting the correct prototype.
To reproduce, create a minimal app that executes the following:
class Test extends Function {
extend() {}
}
console.log(new Test().__proto__);
Running it in Chrome shows the following in dev tools:

When running under Testcafe, the following is shown:

In Testcafe, instantiated classes that extend Function no longer have access to their methods. Presumably this is due to the native Function being overwritten but I didn't do much other digging once I could create a test case.
@praxxis
Hello,
Thank you for your research. I reproduced the issue. Our team will examine this behavior and check for a suitable solution.
but I didn't do much other digging once I could create a test case
Could you please share a real-world example with us? It will help us research the issue in a real scenario.
The code is in the rest-hooks library. https://codesandbox.io/s/vigorous-taussig-cpt73?file=/src/App.js has a small rest-hooks app that should exhibit the behavior.
Most helpful comment
The code is in the rest-hooks library. https://codesandbox.io/s/vigorous-taussig-cpt73?file=/src/App.js has a small rest-hooks app that should exhibit the behavior.