WordPress/wordpress-playground

Better error message when accessing an undefined Comlink method

adamziel opened this issue · 0 comments

Calling client.nosuchmethod throws d is undefined – that's a Comlink.js error message. Let's find a way to make it clearer, e.g. There isn't a method called client.nosuchmethod or even JavaScript's default client.nosuchmethod is not a function.