Fix some test fixtures (#11655)

This commit is contained in:
Brian Ng 2020-05-31 09:57:00 -05:00 committed by GitHub
parent 30d7236397
commit 3a3457d808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 114 additions and 114 deletions

View File

@ -4,6 +4,12 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -71,12 +77,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,12 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -71,12 +77,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,10 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -71,10 +75,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,10 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -71,10 +75,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,12 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -74,12 +80,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,12 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -74,12 +80,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,12 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -74,12 +80,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,12 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -74,12 +80,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _m = _classPrivateFieldLooseKey("m");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,10 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -74,10 +78,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -4,6 +4,10 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
class Foo { class Foo {
static getSelf() { static getSelf() {
return this; return this;
@ -74,10 +78,6 @@ class Foo {
} }
var _x = _classPrivateFieldLooseKey("x");
var _self = _classPrivateFieldLooseKey("self");
Object.defineProperty(Foo, _x, { Object.defineProperty(Foo, _x, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -18,6 +20,4 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _get_foo = function () {}; var _get_foo = function () {};

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -17,5 +19,3 @@ let Foo = /*#__PURE__*/function () {
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -17,6 +19,4 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -1,3 +1,5 @@
var _bar = new WeakMap();
class Foo { class Foo {
constructor() { constructor() {
_bar.set(this, { _bar.set(this, {
@ -16,8 +18,6 @@ class Foo {
} }
var _bar = new WeakMap();
var _foo = { var _foo = {
writable: true, writable: true,
value: "foo" value: "foo"

View File

@ -1,3 +1,7 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -16,6 +20,8 @@ let Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _bar2 = babelHelpers.classPrivateFieldLooseKey("bar");
let Nested = /*#__PURE__*/function () { let Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {
babelHelpers.classCallCheck(this, Nested); babelHelpers.classCallCheck(this, Nested);
@ -35,15 +41,9 @@ let Foo = /*#__PURE__*/function () {
return Nested; return Nested;
}(); }();
var _bar2 = babelHelpers.classPrivateFieldLooseKey("bar");
Object.prototype.hasOwnProperty.call(this, _foo); Object.prototype.hasOwnProperty.call(this, _foo);
Object.prototype.hasOwnProperty.call(this, _bar); Object.prototype.hasOwnProperty.call(this, _bar);
} }
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = babelHelpers.classPrivateFieldLooseKey("bar");

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -12,6 +14,8 @@ let Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
let Nested = /*#__PURE__*/function () { let Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {
babelHelpers.classCallCheck(this, Nested); babelHelpers.classCallCheck(this, Nested);
@ -30,12 +34,8 @@ let Foo = /*#__PURE__*/function () {
return Nested; return Nested;
}(); }();
var _foo2 = babelHelpers.classPrivateFieldLooseKey("foo");
Object.prototype.hasOwnProperty.call(this, _foo); Object.prototype.hasOwnProperty.call(this, _foo);
} }
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -31,5 +33,3 @@ let Foo = /*#__PURE__*/function () {
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -14,8 +16,6 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _get_foo = function () {}; var _get_foo = function () {};
Object.defineProperty(Foo, _foo, { Object.defineProperty(Foo, _foo, {

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -14,8 +16,6 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
Object.defineProperty(Foo, _foo, { Object.defineProperty(Foo, _foo, {
writable: true, writable: true,
value: 1 value: 1

View File

@ -1,3 +1,5 @@
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -14,8 +16,6 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};
Object.defineProperty(Foo, _foo, { Object.defineProperty(Foo, _foo, {

View File

@ -1,3 +1,5 @@
var _foo = new WeakMap();
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -19,6 +21,4 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = new WeakMap();
var _get_foo = function () {}; var _get_foo = function () {};

View File

@ -1,3 +1,5 @@
var _foo = new WeakMap();
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -18,5 +20,3 @@ let Foo = /*#__PURE__*/function () {
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = new WeakMap();

View File

@ -1,3 +1,5 @@
var _foo = new WeakSet();
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -16,6 +18,4 @@ let Foo = /*#__PURE__*/function () {
return Foo; return Foo;
}(); }();
var _foo = new WeakSet();
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -1,3 +1,5 @@
var _bar = new WeakMap();
class Foo { class Foo {
constructor() { constructor() {
_bar.set(this, { _bar.set(this, {
@ -16,8 +18,6 @@ class Foo {
} }
var _bar = new WeakMap();
var _foo = { var _foo = {
writable: true, writable: true,
value: "foo" value: "foo"

View File

@ -1,3 +1,7 @@
var _foo = new WeakMap();
var _bar = new WeakMap();
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -18,6 +22,8 @@ let Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _bar2 = new WeakMap();
let Nested = /*#__PURE__*/function () { let Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {
babelHelpers.classCallCheck(this, Nested); babelHelpers.classCallCheck(this, Nested);
@ -39,8 +45,6 @@ let Foo = /*#__PURE__*/function () {
return Nested; return Nested;
}(); }();
var _bar2 = new WeakMap();
_foo.has(this); _foo.has(this);
_bar.has(this); _bar.has(this);
@ -48,7 +52,3 @@ let Foo = /*#__PURE__*/function () {
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = new WeakMap();
var _bar = new WeakMap();

View File

@ -1,3 +1,5 @@
var _foo = new WeakMap();
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -13,6 +15,8 @@ let Foo = /*#__PURE__*/function () {
babelHelpers.createClass(Foo, [{ babelHelpers.createClass(Foo, [{
key: "test", key: "test",
value: function test() { value: function test() {
var _foo2 = new WeakMap();
let Nested = /*#__PURE__*/function () { let Nested = /*#__PURE__*/function () {
function Nested() { function Nested() {
babelHelpers.classCallCheck(this, Nested); babelHelpers.classCallCheck(this, Nested);
@ -32,12 +36,8 @@ let Foo = /*#__PURE__*/function () {
return Nested; return Nested;
}(); }();
var _foo2 = new WeakMap();
_foo.has(this); _foo.has(this);
} }
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = new WeakMap();

View File

@ -1,3 +1,5 @@
var _foo = new WeakMap();
let Foo = /*#__PURE__*/function () { let Foo = /*#__PURE__*/function () {
"use strict"; "use strict";
@ -32,5 +34,3 @@ let Foo = /*#__PURE__*/function () {
}]); }]);
return Foo; return Foo;
}(); }();
var _foo = new WeakMap();

View File

@ -2,6 +2,8 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _foo = _classPrivateFieldLooseKey("foo");
class A { class A {
constructor() { constructor() {
Object.defineProperty(this, _foo, { Object.defineProperty(this, _foo, {
@ -12,6 +14,4 @@ class A {
} }
var _foo = _classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -2,6 +2,8 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _foo = _classPrivateFieldLooseKey("foo");
class A { class A {
constructor() { constructor() {
Object.defineProperty(this, _foo, { Object.defineProperty(this, _foo, {
@ -12,6 +14,4 @@ class A {
} }
var _foo = _classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -1,5 +1,7 @@
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var _foo = new WeakSet();
class A { class A {
constructor() { constructor() {
_foo.add(this); _foo.add(this);
@ -9,6 +11,4 @@ class A {
} }
var _foo = new WeakSet();
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -2,6 +2,8 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _foo = _classPrivateFieldLooseKey("foo");
class A { class A {
constructor() { constructor() {
Object.defineProperty(this, _foo, { Object.defineProperty(this, _foo, {
@ -12,6 +14,4 @@ class A {
} }
var _foo = _classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -1,5 +1,7 @@
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var _foo = new WeakSet();
class A { class A {
constructor() { constructor() {
_foo.add(this); _foo.add(this);
@ -9,6 +11,4 @@ class A {
} }
var _foo = new WeakSet();
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -2,6 +2,8 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _foo = _classPrivateFieldLooseKey("foo");
class A { class A {
constructor() { constructor() {
Object.defineProperty(this, _foo, { Object.defineProperty(this, _foo, {
@ -12,6 +14,4 @@ class A {
} }
var _foo = _classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -2,6 +2,8 @@ var id = 0;
function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; } function _classPrivateFieldLooseKey(name) { return "__private_" + id++ + "_" + name; }
var _foo = _classPrivateFieldLooseKey("foo");
class A { class A {
constructor() { constructor() {
Object.defineProperty(this, _foo, { Object.defineProperty(this, _foo, {
@ -12,6 +14,4 @@ class A {
} }
var _foo = _classPrivateFieldLooseKey("foo");
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};

View File

@ -1,5 +1,7 @@
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var _foo = new WeakSet();
class A { class A {
constructor() { constructor() {
_foo.add(this); _foo.add(this);
@ -9,6 +11,4 @@ class A {
} }
var _foo = new WeakSet();
var _foo2 = function _foo2() {}; var _foo2 = function _foo2() {};