From edd37c9a01372d329b25e4ab512a7cf9a0eb27b1 Mon Sep 17 00:00:00 2001 From: chenjingxiang Date: Fri, 8 Aug 2025 15:25:11 +0800 Subject: [PATCH] ArkTools is defined on the global obj by default Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/ICS28M?from=project-issue Signed-off-by: chenjingxiang Change-Id: I577f9a1a03cc87f4709fd5ac57e9eddd67b03685 --- ecmascript/builtins/builtins.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ecmascript/builtins/builtins.cpp b/ecmascript/builtins/builtins.cpp index 964fac54f4..0f87fdc8ee 100644 --- a/ecmascript/builtins/builtins.cpp +++ b/ecmascript/builtins/builtins.cpp @@ -487,10 +487,8 @@ void Builtins::InitializeGlobalObject(const JSHandle &env, const JSHa SetFunction(env, globalObject, "printFunctionCallStat", Global::PrintFunctionCallStat, 0); #endif - if (vm_->GetJSOptions().EnableArkTools()) { - JSHandle arkTools(InitializeArkTools(env)); - SetConstantObject(globalObject, "ArkTools", arkTools); - } + JSHandle arkTools(InitializeArkTools(env)); + SetConstantObject(globalObject, "ArkTools", arkTools); #if ECMASCRIPT_ENABLE_ARK_CONTAINER // Set ArkPrivate -- Gitee