| Index: pkg/custom_element/lib/custom-elements.debug.js
|
| diff --git a/pkg/custom_element/lib/custom-elements.debug.js b/pkg/custom_element/lib/custom-elements.debug.js
|
| index fff3b8aceaaf449d3a2b62625ffbc22a12df72e3..3860932a9eeb72ca274d632753fb1b7bd0fc1e7d 100644
|
| --- a/pkg/custom_element/lib/custom-elements.debug.js
|
| +++ b/pkg/custom_element/lib/custom-elements.debug.js
|
| @@ -1151,6 +1151,11 @@ if (useNative) {
|
| // getPrototypeOf(Element), we cannot do so when
|
| // we use mixin, so we install a magic reference
|
| customMixin(element, definition.prototype, definition.native);
|
| +
|
| + // Dart note: make sure we pick up the right constructor.
|
| + // dart2js depends on this for dart:mirrors caching to work.
|
| + // See tests/html/custom/mirrors_test.dart
|
| + element.constructor = definition.prototype.constructor;
|
| element.__proto__ = definition.prototype;
|
| }
|
| }
|
|
|