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

11 lines
380 B
JavaScript

// Inspired by mozilla tests
description('Tests for ES6 arrow function instanceof and typeof operators');
var simpleArrowFunction = () => {};
shouldBe("Object.getPrototypeOf(simpleArrowFunction)", "Function.prototype");
shouldBe("simpleArrowFunction instanceof Function", "true");
shouldBe("simpleArrowFunction.constructor == Function", "true");
var successfullyParsed = true;