haikuwebkit/LayoutTests/js/script-tests/arrowfunction-typeof.js

13 lines
286 B
JavaScript

var af1 = () => {};
var af2 = (a) => {a + 1};
shouldBe("typeof af1 === 'function'", "true");
shouldBe("typeof af2 === 'function'", "true");
shouldBe("typeof (()=>{}) === 'function'", "true");
shouldBe("typeof ((b) => {b + 1})==='function'", "true");
var successfullyParsed = true;