Skip to content

Commit 7ab6fdd

Browse files
fix: flag logic
1 parent e624d29 commit 7ab6fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@lwc/engine-core/src/framework/invoker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function invokeComponentConstructor(vm: VM, Ctor: LightningElementConstru
6161
// When the DISABLE_LIGHTNING_CONSTRUCTOR_CHECK gate is true and LEGACY_LOCKER_ENABLED is false,
6262
// then the instanceof LightningElement can be used.
6363
const useLegacyConstructorCheck =
64-
lwcRuntimeFlags.DISABLE_LIGHTNING_CONSTRUCTOR_CHECK &&
64+
lwcRuntimeFlags.DISABLE_LIGHTNING_CONSTRUCTOR_CHECK ||
6565
lwcRuntimeFlags.LEGACY_LOCKER_ENABLED;
6666

6767
const isInvalidConstructor = useLegacyConstructorCheck

0 commit comments

Comments
 (0)