We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e624d29 commit 7ab6fddCopy full SHA for 7ab6fdd
packages/@lwc/engine-core/src/framework/invoker.ts
@@ -61,7 +61,7 @@ export function invokeComponentConstructor(vm: VM, Ctor: LightningElementConstru
61
// When the DISABLE_LIGHTNING_CONSTRUCTOR_CHECK gate is true and LEGACY_LOCKER_ENABLED is false,
62
// then the instanceof LightningElement can be used.
63
const useLegacyConstructorCheck =
64
- lwcRuntimeFlags.DISABLE_LIGHTNING_CONSTRUCTOR_CHECK &&
+ lwcRuntimeFlags.DISABLE_LIGHTNING_CONSTRUCTOR_CHECK ||
65
lwcRuntimeFlags.LEGACY_LOCKER_ENABLED;
66
67
const isInvalidConstructor = useLegacyConstructorCheck
0 commit comments