Area restrita - Questionario
This commit is contained in:
+5
-9
@@ -35,10 +35,8 @@ var _default = exports.default = (0, _helperPluginUtils.declare)((api, options)
|
||||
if (assumeArray === true && allowArrayLike === true) {
|
||||
throw new Error(`The assumeArray and allowArrayLike options cannot be used together in @babel/plugin-transform-for-of`);
|
||||
}
|
||||
{
|
||||
if (allowArrayLike && /^7\.\d\./.test(api.version)) {
|
||||
throw new Error(`The allowArrayLike is only supported when using @babel/core@^7.10.0`);
|
||||
}
|
||||
if (allowArrayLike && /^7\.\d\./.test(api.version)) {
|
||||
throw new Error(`The allowArrayLike is only supported when using @babel/core@^7.10.0`);
|
||||
}
|
||||
}
|
||||
const iterableIsArray = (_options$assumeArray = options.assumeArray) != null ? _options$assumeArray : !options.loose && api.assumption("iterableIsArray");
|
||||
@@ -148,11 +146,9 @@ var _default = exports.default = (0, _helperPluginUtils.declare)((api, options)
|
||||
path.replaceWith(_ForOfStatementArray(path));
|
||||
return;
|
||||
}
|
||||
{
|
||||
if (!state.availableHelper(builder.helper)) {
|
||||
(0, _noHelperImplementation.default)(skipIteratorClosing, path, state);
|
||||
return;
|
||||
}
|
||||
if (!state.availableHelper(builder.helper)) {
|
||||
(0, _noHelperImplementation.default)(skipIteratorClosing, path, state);
|
||||
return;
|
||||
}
|
||||
const {
|
||||
node,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
-1
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
||||
});
|
||||
exports.default = transformWithoutHelper;
|
||||
var _core = require("@babel/core");
|
||||
;
|
||||
function transformWithoutHelper(loose, path, state) {
|
||||
const pushComputedProps = loose ? pushComputedPropsLoose : pushComputedPropsSpec;
|
||||
const {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user