()
| 955 | const name = opt_name || 'amp-element'; |
| 956 | const proto = createAmpElementForTesting(win).prototype; |
| 957 | const ctor = function () { |
| 958 | const el = win.document.createElement(name); |
| 959 | el.__proto__ = proto; |
| 960 | return el; |
| 961 | }; |
| 962 | ctor.prototype = proto; |
| 963 | proto.constructor = ctor; |
| 964 |
no outgoing calls
no test coverage detected