<!-- Thank you for reporting a bug in Boa! This will make us improve the engine. But first, fill the following template so that we better understand what's happening. Feel free to add or remove sections as you feel appropriate. --> **To Reproduce** ```js 'bar'.foo() ``` or ```js let bar = {} bar.foo() ``` **Expected behavior** Should throw TypeError `TypeError: 'bar'.foo is not a function` `TypeError: bar.foo is not a function` Instead `undefined` is returned.
To Reproduce
or
Expected behavior
Should throw TypeError
TypeError: 'bar'.foo is not a functionTypeError: bar.foo is not a functionInstead
undefinedis returned.