mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
17 lines
473 B
JavaScript
17 lines
473 B
JavaScript
// structuredClone对象
|
|
structuredClone = () => {
|
|
console.log_copy(`使用 structuredClone arg->`, arguments);
|
|
};
|
|
bodavm.toolsFunc.safefunction(structuredClone, "structuredClone");
|
|
bodavm.toolsFunc.defineProperty(structuredClone, "length", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: false,
|
|
value: 1
|
|
});
|
|
bodavm.toolsFunc.defineProperty(structuredClone, "name", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: false,
|
|
value: 'structuredClone'
|
|
}); |