Skip to content

Commit 23f4fd4

Browse files
caridyravijayaramappa
authored andcommitted
fix(engine): more PR feedback
1 parent 18c4da0 commit 23f4fd4

File tree

1 file changed

+3
-3
lines changed
  • packages/@lwc/engine-core/src/framework

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export interface VM<N = HostNode, E = HostElement> {
116116
shadowMode: ShadowMode;
117117
/** Transitive support for native Shadow DOM. A component in native mode
118118
* transitively opts all of its descendants into native. */
119-
readonly nearestSRMode: ShadowMode | null;
119+
readonly nearestShadowMode: ShadowMode | null;
120120
/** The component creation index. */
121121
idx: number;
122122
/** Component state, analogous to Element.isConnected */
@@ -289,7 +289,7 @@ export function createVM<HostNode, HostElement>(
289289

290290
renderMode: def.renderMode,
291291
shadowMode: computeShadowMode(def, owner),
292-
nearestSRMode: owner?.shadowRoot ? owner.shadowMode : owner?.nearestSRMode ?? null,
292+
nearestShadowMode: owner?.shadowRoot ? owner.shadowMode : owner?.nearestShadowMode ?? null,
293293

294294
context: {
295295
stylesheetToken: undefined,
@@ -355,7 +355,7 @@ function computeShadowMode(def: ComponentDef, owner: VM | null) {
355355
// transitively opts all of its descendants into native.
356356
// Synthetic if neither this component nor any of its ancestors are configured
357357
// to be native.
358-
shadowMode = owner?.nearestSRMode ?? ShadowMode.Synthetic;
358+
shadowMode = owner?.nearestShadowMode ?? ShadowMode.Synthetic;
359359
}
360360
} else {
361361
shadowMode = ShadowMode.Synthetic;

0 commit comments

Comments
 (0)