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:
@@ -4,7 +4,6 @@
|
||||
"syntax-jsx",
|
||||
"transform-react-jsx",
|
||||
"transform-block-scoped-functions",
|
||||
"transform-for-of",
|
||||
["external-helpers", { "helperVersion": "7.100.0" }]
|
||||
"transform-for-of"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
if (true) {
|
||||
var _run = /*#__PURE__*/function () {
|
||||
var _ref = _asyncToGenerator(function* () {
|
||||
var _ref = babelHelpers.asyncToGenerator(function* () {
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
||||
|
||||
var _loop = function (foo, bar) {
|
||||
() => foo;
|
||||
|
||||
@@ -14,7 +12,7 @@ for (var _ref of {}) {
|
||||
var {
|
||||
foo
|
||||
} = _ref,
|
||||
bar = _objectWithoutPropertiesLoose(_ref, ["foo"]);
|
||||
bar = babelHelpers.objectWithoutPropertiesLoose(_ref, ["foo"]);
|
||||
|
||||
_loop(foo, bar);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user