File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/@lwc/ssr-compiler/src/compile-js Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 77
88import { DecoratorErrors } from '@lwc/errors' ;
99import { DISALLOWED_PROP_SET , AMBIGUOUS_PROP_SET } from '@lwc/shared' ;
10+ import { is } from 'estree-toolkit' ;
1011import { generateError } from '../../errors' ;
1112import { type ComponentMetaState } from '../../types' ;
1213import type { Identifier , MethodDefinition , PropertyDefinition } from 'estree' ;
13-
1414export type ApiMethodDefinition = MethodDefinition & {
1515 key : Identifier ;
1616} ;
Original file line number Diff line number Diff line change @@ -274,5 +274,5 @@ export default function compileJS(
274274function isKeyIdentifier < T extends EsPropertyDefinition | EsMethodDefinition > (
275275 node : T | undefined | null
276276) : node is T & { key : Identifier } {
277- return is . identifier ( node . key ) ;
277+ return is . identifier ( node ? .key ) ;
278278}
You can’t perform that action at this time.
0 commit comments