haikuwebkit/JSTests/es6/function_name_property_shor...

11 lines
138 B
JavaScript

function test() {
var f = "foo";
return ({f() { return f; }}).f() === "foo";
}
if (!test())
throw new Error("Test failed");