forked from babel/babel
/
output.js
27 lines (20 loc) · 815 Bytes
/
output.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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;
}( /*#__PURE__*/babelHelpers.wrapNativeSuper(HTMLElement));
;
new CustomElement();
expect(constructor).toBe(CustomElement);