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

28 lines
801 B
JavaScript

// Pretend that `Reflect.construct` isn't supported.
this.Reflect = undefined;
this.HTMLElement = function () {
// Here, `this.HTMLElement` is this function, not the original HTMLElement
// constructor. `this.constructor` should be this function too, but isn't.
constructor = this.constructor;
};
var constructor;
var CustomElement = /*#__PURE__*/function (_HTMLElement) {
"use strict";
babelHelpers.inherits(CustomElement, _HTMLElement);
function CustomElement() {
babelHelpers.classCallCheck(this, CustomElement);
return babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(CustomElement).apply(this, arguments));
}
return CustomElement;
}(babelHelpers.wrapNativeSuper(HTMLElement));
;
new CustomElement();
expect(constructor).toBe(CustomElement);