Lint and format src/compiler/compile/render_dom/wrappers/shared/is_dynamic.js

pull/8569/head
Simon Holthausen 3 years ago
parent 4d216b100b
commit fda41da2a4

@ -3,16 +3,9 @@ import { is_reserved_keyword } from '../../../utils/reserved_keywords.js';
/** @param {import('../../../../interfaces.js').Var} variable */
export default function is_dynamic(variable) {
if (variable) {
if (variable.mutated || variable.reassigned)
return true; // dynamic internal state
if (!variable.module && variable.writable && variable.export_name)
return true; // writable props
if (is_reserved_keyword(variable.name))
return true;
if (variable.mutated || variable.reassigned) return true; // dynamic internal state
if (!variable.module && variable.writable && variable.export_name) return true; // writable props
if (is_reserved_keyword(variable.name)) return true;
}
return false;
}

Loading…
Cancel
Save