Skip to content

Commit

Permalink
update test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed May 19, 2022
1 parent bc69fa8 commit 47a8009
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/babel-helper-simple-access/src/index.ts
Expand Up @@ -134,7 +134,7 @@ const simpleAssignmentVisitor: Visitor<State> = {
// (foo &&= bar) => (foo && foo = bar)
path.replaceWith(
logicalExpression(
// @ts-expect-error Guarded by
// @ts-expect-error Guarded by LOGICAL_OPERATORS.includes
operator,
path.node.left,
assignmentExpression(
Expand Down
Expand Up @@ -8,15 +8,16 @@ console.log(function () {
console.log(function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}().prop);

exports += function () {
exports += (function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}();

exports = function () {
}(), function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}() + 4;

}());
exports = (function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}() + 4, function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}());
({
exports
} = ({}, function () {
Expand All @@ -25,7 +26,9 @@ exports = function () {
[exports] = ([], function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}());
exports = {};
exports = ({}, function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}());
(function () {
throw new Error("The CommonJS '" + "exports" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
})().prop = "";
Expand All @@ -35,15 +38,16 @@ console.log(function () {
console.log(function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}().exports);

module += function () {
module += (function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}();

module = function () {
}(), function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}() + 4;

}());
module = (function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}() + 4, function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}());
({
module
} = ({}, function () {
Expand All @@ -52,7 +56,9 @@ module = function () {
[module] = ([], function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}());
module = {};
module = ({}, function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
}());
(function () {
throw new Error("The CommonJS '" + "module" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file.");
})().prop = "";

0 comments on commit 47a8009

Please sign in to comment.