Babylon has a bug (I guess) with locations for classes where decorators are involved. Instead of the class starting at the first decorator, it starts at the beginning of the `class` keyword. By moving the location to the first comment, it solves --some-- of the issues with decorator comments.
11 lines
100 B
JavaScript
11 lines
100 B
JavaScript
var x = 100
|
|
|
|
@Hello({
|
|
a: 'a', // Comment is in the wrong place
|
|
// test
|
|
b: '2'
|
|
})
|
|
class X {
|
|
|
|
}
|