mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-22 03:40:31 +00:00
21 lines
535 B
HTML
21 lines
535 B
HTML
|
|
<test-element></test-element>
|
||
|
|
<script src="../include.js"></script>
|
||
|
|
<script>
|
||
|
|
test(() => {
|
||
|
|
class TestElement extends HTMLElement {
|
||
|
|
constructor() {
|
||
|
|
super();
|
||
|
|
println("Entered TestElement constructor, throwing.");
|
||
|
|
throw "test";
|
||
|
|
}
|
||
|
|
|
||
|
|
connectedCallback() {
|
||
|
|
println("connectedCallback");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
customElements.define("test-element", TestElement);
|
||
|
|
println("PASS! (Didn't crash)");
|
||
|
|
});
|
||
|
|
</script>
|