diff --git a/packages/pug-code-gen/index.js b/packages/pug-code-gen/index.js index 9f578ef79..6409d0ad0 100644 --- a/packages/pug-code-gen/index.js +++ b/packages/pug-code-gen/index.js @@ -810,7 +810,7 @@ Compiler.prototype = { * Compile attribute blocks. */ - attributeBlocks(attributeBlocks) { + attributeBlocks: function (attributeBlocks) { return attributeBlocks && attributeBlocks.slice().map(function(attrBlock){ return attrBlock.val; });