v1.0 with SW PWA enabled
This commit is contained in:
8
frontend/node_modules/@babel/traverse/lib/path/conversion.js
generated
vendored
8
frontend/node_modules/@babel/traverse/lib/path/conversion.js
generated
vendored
@ -285,7 +285,7 @@ function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow =
|
||||
}
|
||||
}
|
||||
return {
|
||||
thisBinding,
|
||||
thisBinding: thisBinding,
|
||||
fnPath
|
||||
};
|
||||
}
|
||||
@ -300,8 +300,10 @@ function standardizeSuperProperty(superProp) {
|
||||
const isLogicalAssignment = isLogicalOp(op);
|
||||
if (superProp.node.computed) {
|
||||
const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp");
|
||||
const object = superProp.node.object;
|
||||
const property = superProp.node.property;
|
||||
const {
|
||||
object,
|
||||
property
|
||||
} = superProp.node;
|
||||
assignmentPath.get("left").replaceWith(memberExpression(object, assignmentExpression("=", tmp, property), true));
|
||||
assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(tmp.name), true), value));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user