Re: [WICG/webcomponents] [scoped-registries] Interaction with HTML element's overridden constructor steps (Issue #969)

> This isn't a thing in the current proposal. Calling constructors is only supported for the global registry:

Yes, I meant pretend it’s the internal invocation of Foo (hence the labeling argument). It’s not the most artful demo, admittedly :)

> Recursively calling a constructor before super() can get individual instances swapped already.

Right, in the upgrade path, but a TypeError is thrown if the expected instance isn’t returned (“...must not return a different object”). That’s why I asked about whether a similar exception could/would be thrown in this scenario.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/969#issuecomment-1458561678
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/969/1458561678@github.com>

Received on Tuesday, 7 March 2023 17:31:54 UTC