mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
14 lines
332 B
JavaScript
14 lines
332 B
JavaScript
|
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);
|
||
|
},
|
||
|
};
|
||
|
}
|