Skip to content

Commit

Permalink
Update test spec/definition-order
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSodaSea committed Nov 29, 2022
1 parent 1fd56a3 commit c735135
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ var b = {
};
expect(b.x).toBe(1);

var x = { x, get x() { return 0; }, x };
expect(x.x).toBe(undefined);
x.x = 1;
expect(x.x).toBe(1);
var x = 1;
var y = { x, get x() { return 0; }, x };
expect(y.x).toBe(1);
y.x = 2;
expect(y.x).toBe(2);
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ var b = {
["x"]: 1,
};

var x = { x, get x() { return 0; }, x };
x.x = 1;
var x = 1;
var y = { x, get x() { return 0; }, x };
y.x = 2;
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
var _a, _b, _x;
var _a, _b, _y;
var a = (_a = {}, babelHelpers.defineAccessor("get", _a, "x", function () {
return 0;
}), babelHelpers.defineProperty(_a, "y", 1), _a);
var b = (_b = {}, babelHelpers.defineAccessor("get", _b, "x", function () {
return 0;
}), babelHelpers.defineProperty(_b, "x", 1), _b);
var x = (_x = {
var x = 1;
var y = (_y = {
x
}, babelHelpers.defineAccessor("get", _x, "x", function () {
}, babelHelpers.defineAccessor("get", _y, "x", function () {
return 0;
}), babelHelpers.defineProperty(_x, "x", x), _x);
x.x = 1;
}), babelHelpers.defineProperty(_y, "x", x), _y);
y.x = 2;

0 comments on commit c735135

Please sign in to comment.