googlearchive / polyclean

BSD 3-Clause "New" or "Revised" License
20 stars 7 forks source link

ES6 object literals syntax throws error #5

Open gutenye opened 9 years ago

gutenye commented 9 years ago

Given

a.html

<script>
Polymer({
  say() {...}
})
</script>

gulpfile.js

gulp.src("a.html")
  .pipe(polyclean.leftAlignJs())

It raises

Error: Line 3: Unexpected token (      # in say()
ebidel commented 9 years ago

Does "use strict"; help?

gutenye commented 9 years ago

nope