Enable external-helpers by default in tests (#12911)

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
This commit is contained in:
Nicolò Ribaudo
2021-02-26 23:33:26 +01:00
committed by GitHub
parent bfd30b9445
commit ea6a438315
591 changed files with 1859 additions and 4233 deletions

View File

@@ -3,7 +3,6 @@
"proposal-class-static-block",
["proposal-private-property-in-object", { "loose": true }],
["proposal-private-methods", { "loose": true }],
["proposal-class-properties", { "loose": true }],
"external-helpers"
["proposal-class-properties", { "loose": true }]
]
}

View File

@@ -1,5 +1,3 @@
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { if (receiver !== classConstructor) { throw new TypeError("Private static access of wrong provenance"); } if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
class Foo {}
var _ = {
@@ -9,7 +7,7 @@ var _ = {
var _2 = {
writable: true,
value: (() => {
Foo.foo = _classStaticPrivateFieldSpecGet(Foo, Foo, _);
Foo.foo = babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _);
})()
};
expect(Foo.foo).toBe(42);

View File

@@ -3,7 +3,6 @@
"proposal-class-static-block",
"proposal-private-property-in-object",
"proposal-private-methods",
"proposal-class-properties",
"external-helpers"
"proposal-class-properties"
]
}