Skip to content

Commit

Permalink
re-order assignments in test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 18, 2024
1 parent ca491db commit 8fc76c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,47 @@ const ident = "A";
class Outer {
static B = () => {
// Transform
super.A = 1;
super.A += 1;
super.A -= 1;
super.A &&= 1;
super.A ||= 1;
super.A = 1;

super[ident] = 1;
super[ident] += 1;
super[ident] -= 1;
super[ident] &&= 1;
super[ident] ||= 1;
super[ident] = 1;

class Inner {
method() {
// Don't transform
super.A = 1;
super.A += 1;
super.A -= 1;
super.A &&= 1;
super.A ||= 1;
super.A = 1;

super[ident] = 1;
super[ident] += 1;
super[ident] -= 1;
super[ident] &&= 1;
super[ident] ||= 1;
super[ident] = 1;
}

static staticMethod() {
// Don't transform
super.A = 1;
super.A += 1;
super.A -= 1;
super.A &&= 1;
super.A ||= 1;
super.A = 1;

super[ident] = 1;
super[ident] += 1;
super[ident] -= 1;
super[ident] &&= 1;
super[ident] ||= 1;
super[ident] = 1;
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Outer {}
_Outer = Outer;
babelHelpers.defineProperty(Outer, "B", () => {
// Transform
babelHelpers.superPropSet(_Outer, "A", 1, _Outer, 1);
babelHelpers.superPropSet(
_Outer,
"A",
Expand All @@ -25,8 +26,8 @@ babelHelpers.defineProperty(Outer, "B", () => {
babelHelpers.superPropSet(_Outer, "A", 1, _Outer, 1);
babelHelpers.superPropGet(_Outer, "A", _Outer) ||
babelHelpers.superPropSet(_Outer, "A", 1, _Outer, 1);
babelHelpers.superPropSet(_Outer, "A", 1, _Outer, 1);

babelHelpers.superPropSet(_Outer, ident, 1, _Outer, 1);
babelHelpers.superPropSet(
_Outer,
ident,
Expand All @@ -45,37 +46,36 @@ babelHelpers.defineProperty(Outer, "B", () => {
babelHelpers.superPropSet(_Outer, ident, 1, _Outer, 1);
babelHelpers.superPropGet(_Outer, ident, _Outer) ||
babelHelpers.superPropSet(_Outer, ident, 1, _Outer, 1);
babelHelpers.superPropSet(_Outer, ident, 1, _Outer, 1);

class Inner {
method() {
// Don't transform
super.A = 1;
super.A += 1;
super.A -= 1;
super.A &&= 1;
super.A ||= 1;
super.A = 1;

super[ident] = 1;
super[ident] += 1;
super[ident] -= 1;
super[ident] &&= 1;
super[ident] ||= 1;
super[ident] = 1;
}

static staticMethod() {
// Don't transform
super.A = 1;
super.A += 1;
super.A -= 1;
super.A &&= 1;
super.A ||= 1;
super.A = 1;

super[ident] = 1;
super[ident] += 1;
super[ident] -= 1;
super[ident] &&= 1;
super[ident] ||= 1;
super[ident] = 1;
}
}
});

0 comments on commit 8fc76c0

Please sign in to comment.