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

14 lines
332 B
JavaScript
Raw Normal View History

import get from "./_get.mjs";
import set from "./_set.mjs";
export default function _update(target, property, receiver, isStrict) {
return {
get _() {
return get(target, property, receiver);
},
set _(value) {
set(target, property, value, receiver, isStrict);
},
};
}