Skip to content

Commit

Permalink
fix object end
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Nov 10, 2024
1 parent 620f21f commit ebfab3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/declarative.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ module.exports = function compileDeclarative(cb, app) {
}
body.push(...stuff.reverse());
} else if(arg.type === 'ObjectExpression') {
if(call.obj.propertyName === 'end') {
return false;
}
// only simple objects can be optimized
let objCode = code;
for(let property of arg.properties) {
Expand Down

0 comments on commit ebfab3f

Please sign in to comment.