haikuwebkit/JSTests/es6/function_name_property_func...

12 lines
156 B
JavaScript

function test() {
function foo(){};
return foo.name === 'foo' &&
(function(){}).name === '';
}
if (!test())
throw new Error("Test failed");