diff --git a/lib/6to5/transformation/transformers/es6-classes.js b/lib/6to5/transformation/transformers/es6-classes.js index 6363138079..f43f522f60 100644 --- a/lib/6to5/transformation/transformers/es6-classes.js +++ b/lib/6to5/transformation/transformers/es6-classes.js @@ -82,6 +82,8 @@ Class.prototype.run = function () { this.buildBody(); + t.inheritsComments(body[0], this.node); + if (this.closure) { if (body.length === 1) { // only a constructor so no need for a closure container