haikuwebkit/LayoutTests/js/script-tests/arrowfunction-block-1.js

12 lines
266 B
JavaScript

description('Tests for ES6 arrow function declaration body as block');
debug('f = () => {}');
var f = () => {};
shouldBe("typeof f()", "'undefined'");
debug('g = () => ({})');
var g = () => ({});
shouldBe("typeof g()", "'object'");
var successfullyParsed = true;