fix: correctly transform __proto__ properties (#12664)
* fix: correctly transform `__proto__` properties * fixup! fix: correctly transform `__proto__` properties
This commit is contained in:
@@ -90,8 +90,6 @@ export default declare((api, options) => {
|
||||
|
||||
if (prop.kind === "get" || prop.kind === "set") {
|
||||
pushMutatorDefine(info, prop);
|
||||
} else if (t.isStringLiteral(key, { value: "__proto__" })) {
|
||||
pushAssign(objId, prop, body);
|
||||
} else {
|
||||
if (computedProps.length === 1) {
|
||||
return t.callExpression(state.addHelper("defineProperty"), [
|
||||
|
||||
Reference in New Issue
Block a user