swc/packages/swc-helpers/src/_class_private_field_update.mjs

8 lines
379 B
JavaScript
Raw Normal View History

import classExtractFieldDescriptor from "./_class_extract_field_descriptor.mjs";
import classApplyDescriptorUpdate from "./_class_apply_descriptor_update.mjs";
export default function _classPrivateFieldUpdate(receiver, privateMap) {
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "update");
return classApplyDescriptorUpdate(receiver, descriptor);
}