boda_jsEnv/bodaEnv/env/requestIdleCallback.js
xuxiaobo-bobo 842b34b5ca 0218
2024-02-18 15:40:48 +08:00

18 lines
579 B
JavaScript

// requestIdleCallback对象
bodaEnv.memory.globlProtoObj["requestIdleCallback"] = {
requestIdleCallback(a) {
bodaEnv.toolsFunc.console_copy(`requestIdleCallback 使用-- >`, a);
}
}.requestIdleCallback;
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["requestIdleCallback"], "length", {
configurable: true,
enumerable: false,
writable: false,
value: 1
});
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["requestIdleCallback"], "name", {
configurable: true,
enumerable: false,
writable: false,
value: 'requestIdleCallback'
});