18 lines
283 B
JavaScript
18 lines
283 B
JavaScript
|
/**
|
||
|
* {}
|
||
|
* @author yutent<yutent.io@gmail.com>
|
||
|
* @date 2023/10/24 18:23:21
|
||
|
*/
|
||
|
|
||
|
export function noop() {}
|
||
|
|
||
|
export function readonlyProp(host, name, value) {
|
||
|
Object.defineProperty(host, name, {
|
||
|
get() {
|
||
|
return value
|
||
|
},
|
||
|
set(vale) {},
|
||
|
enumerable: false
|
||
|
})
|
||
|
}
|