Nicolò Ribaudo d21e2217d5
Skip newlines around inline #__PURE__ annotations (#11133)
* Skip newlines around #__PURE__ annotations

* Update tests
2020-02-13 19:16:33 +01:00

21 lines
449 B
JavaScript

var Test = /*#__PURE__*/function () {
"use strict";
function Test() {
return Object.prototype.constructor;
}
Test.test = function test() {
return Function.prototype.constructor;
};
return Test;
}(); // Instances
expect(Object.getPrototypeOf(Test.prototype)).toBe(Object.prototype);
expect(new Test()).toBe(Object); // Static
expect(Object.getPrototypeOf(Test)).toBe(Function.prototype);
expect(Test.test()).toBe(Function);