This commit is contained in:
恍兮惚兮 2024-03-25 21:05:25 +08:00
parent cd292e6986
commit 381e8fc05b
2 changed files with 1 additions and 4 deletions

View File

@ -146,9 +146,6 @@ bool v8runscript_isolate(void* isolate){
void v8runscript_isolate_bypass(hook_stack* stack, HookParam* hp, uintptr_t* data, uintptr_t* split, size_t* len){ void v8runscript_isolate_bypass(hook_stack* stack, HookParam* hp, uintptr_t* data, uintptr_t* split, size_t* len){
hp->type=HOOK_EMPTY;hp->text_fun=nullptr; hp->type=HOOK_EMPTY;hp->text_fun=nullptr;
static bool runonce=false;
if(runonce)return;
runonce=true;
auto isolate=(void*)stack->ARG2;//测试正确且和v8::Isolate::GetCurrent结果相同 auto isolate=(void*)stack->ARG2;//测试正确且和v8::Isolate::GetCurrent结果相同
v8runscript_isolate(isolate); v8runscript_isolate(isolate);

View File

@ -107,4 +107,4 @@ function retryinject(times){
//非主线程甚至没有window对象会弹窗报错 //非主线程甚至没有window对象会弹窗报错
} }
} }
setTimeout(retryinject,1000,3); retryinject(3)