From a437ada01cb5747325b8ebc19b1337ccba0dce1f Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 4 Mar 2025 18:28:01 +0800 Subject: [PATCH] Fix EditBox crash on macOS platform because of invalid v8::HandleScope. (#18407) --- native/cocos/ui/edit-box/EditBox-mac.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/cocos/ui/edit-box/EditBox-mac.mm b/native/cocos/ui/edit-box/EditBox-mac.mm index e6280e3e66..ce906acd23 100644 --- a/native/cocos/ui/edit-box/EditBox-mac.mm +++ b/native/cocos/ui/edit-box/EditBox-mac.mm @@ -170,9 +170,9 @@ void getTextInputCallback() { } void callJSFunc(const ccstd::string &type, const ccstd::string &text) { - getTextInputCallback(); - se::AutoHandleScope scope; + + getTextInputCallback(); se::ValueArray args; args.push_back(se::Value(type)); args.push_back(se::Value(text));