Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@dec
export default class {
#prop = 0;
prop = 0;
meth() {
return this.#prop;
return this.prop;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": [
"transform-legacy-decorator",
"transform-class-properties"
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
let _default = class {
#prop = 0;
constructor() {
babelHelpers.defineProperty(this, "prop", 0);
}
meth() {
return this.#prop;
return this.prop;
}
};
_default = babelHelpers.decorate([dec], _default);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
@dec
class C {
#prop = 0;
prop = 0;
meth() {
return this.#prop;
return this.prop;
}
}

@dec
export class D {
#prop = 0;
prop = 0;
meth() {
return this.#prop;
return this.prop;
}
}

@dec
export default class E {
#prop = 0;
prop = 0;
meth() {
return this.#prop;
return this.prop;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": [
"transform-legacy-decorator",
"transform-class-properties"
]
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
let C = class C {
#prop = 0;
constructor() {
babelHelpers.defineProperty(this, "prop", 0);
}
meth() {
return this.#prop;
return this.prop;
}
};
C = babelHelpers.decorate([dec], C);

let D = class D {
#prop = 0;
constructor() {
babelHelpers.defineProperty(this, "prop", 0);
}
meth() {
return this.#prop;
return this.prop;
}
};
D = babelHelpers.decorate([dec], D);

export { D };

let E = class E {
#prop = 0;
constructor() {
babelHelpers.defineProperty(this, "prop", 0);
}
meth() {
return this.#prop;
return this.prop;
}
};
E = babelHelpers.decorate([dec], E);
export default E;
export default E;
Loading