Function nodes and throw

I was writing a function node and when I went to test, noticed something peculiar: when throwing an error, instead of showing the throw's message, I get:

TypeError: Cannot read property 'search' of undefined

You can reproduce this by simply putting a throw statement into a function node. Is the use of throw not supported?

There was a issue created recently.

Right-o, thanks @bakman2 !

Yes , until that fix, you need to throw a real error not a string.