Reverted to "initialization" where related to specific error message

pull/10708/head
Mostafa Kheibary 3 years ago
parent e182d22f26
commit 9106df2e26

@ -2435,7 +2435,7 @@ export const template_visitors = {
); );
// we need to eagerly evaluate the expression in order to hit any // we need to eagerly evaluate the expression in order to hit any
// 'Cannot access x before initialisation' errors // 'Cannot access x before initialization' errors
if (context.state.options.dev) { if (context.state.options.dev) {
declarations.push(b.stmt(b.call(name))); declarations.push(b.stmt(b.call(name)));
} }
@ -2630,7 +2630,7 @@ export const template_visitors = {
); );
// we need to eagerly evaluate the expression in order to hit any // we need to eagerly evaluate the expression in order to hit any
// 'Cannot access x before initialisation' errors // 'Cannot access x before initialization' errors
if (context.state.options.dev) { if (context.state.options.dev) {
declarations.push(b.stmt(b.call(name))); declarations.push(b.stmt(b.call(name)));
} }

Loading…
Cancel
Save