Defer all code generation for with expressions, to avoid Babel validation errors for dynamically generated environment values

This commit is contained in:
Sven Slootweg 2023-09-11 02:23:12 +02:00
parent b1b7885507
commit 5a13358ef8

View file

@ -93,11 +93,11 @@ let trivial = {
let contextName = `$implicit${implicitContextCounter++}`;
setContext(null, "implicitContext", contextName);
return defer((node) => {
let setupCode = (hasParent)
? tmplImplicitContextNested({ environment: node.environment, parent: parentContext })
: tmplImplicitContextTop({ environment: node.environment });
return defer((node) => {
return tmplWithWrapper({
contextName: contextName,
setupCode: setupCode,