From 6e0456d7771483521540993e4221b923857c6a02 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Tue, 22 Nov 2022 17:35:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MiaoWoo --- packages/nashorn/src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/nashorn/src/index.ts b/packages/nashorn/src/index.ts index 2ca6c527..1b955a3c 100644 --- a/packages/nashorn/src/index.ts +++ b/packages/nashorn/src/index.ts @@ -64,8 +64,18 @@ declare global { * 引擎渠道 */ ScriptEngineChannel: string + /** + * 慢执行检测时间 + */ ScriptSlowExecuteTime: number ScriptEngineStartTime: number + /** + * 设置全局对象 + * @param key 对象名称 + * @param value 对象值 + * @param config 对象属性 + * @returns + */ setGlobal: (key: string, value: any, config?: PropertyDescriptor & ThisType) => void noop: () => void console: Console