UNPKG

720 BJavaScriptView Raw
1(function() {
2 if (
3 // No Reflect, no classes, no need for shim because native custom elements
4 // require ES2015 classes or Reflect.
5 window.Reflect === undefined ||
6 window.customElements === undefined
7 ) {
8 return;
9 }
10 var BuiltInHTMLElement = HTMLElement;
11 window.HTMLElement = /** @this {!Object} */ function HTMLElement() {
12 return Reflect.construct(
13 BuiltInHTMLElement, [], /** @type {!Function} */ (this.constructor));
14 };
15 HTMLElement.prototype = BuiltInHTMLElement.prototype;
16 HTMLElement.prototype.constructor = HTMLElement;
17 Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
18})();
19
20export * from '../esm/polyfills/index.js';
21export * from '../esm/legacy/loader.mjs';
\No newline at end of file