File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 6060 }
6161 },
6262 "papi-v8" : {
63- "url" : " https://github.com/puerts/backend-v8/releases/download/V8_12.9.202.27__260102/v8_bin_12.9.202.27 .tar.gz" ,
64- "tar-output" : " v8_12.9.202.27 " ,
63+ "url" : " https://github.com/puerts/backend-v8/releases/download/V8_13.6.233.17__260104/v8_bin_13.6.233.17 .tar.gz" ,
64+ "tar-output" : " v8_13.6.233.17 " ,
6565 "config" : {
6666 "definition" : [
6767 " V8_94_OR_NEWER" ,
6868 " V8_118_OR_NEWER" ,
69- " V8_129_OR_NEWER"
69+ " V8_129_OR_NEWER" ,
70+ " V8_136_OR_NEWER"
7071 ],
7172 "include" : [
7273 " /Inc"
Original file line number Diff line number Diff line change @@ -506,13 +506,23 @@ PESAPI_EXTERN pesapi_env pesapi_get_env(pesapi_callback_info pinfo)
506506void * pesapi_get_native_holder_ptr (pesapi_callback_info pinfo)
507507{
508508 auto info = reinterpret_cast <const v8::FunctionCallbackInfo<v8::Value>*>(pinfo);
509+ #if V8_MAJOR_VERSION >= 13 && V8_MINOR_VERSION >= 6
510+ // V8 13.6+: FunctionCallbackInfo::Holder() was removed.
511+ // Use `This()` (the receiver) as the closest equivalent holder object.
512+ return puerts::DataTransfer::GetPointerFast<void >((*info).This ());
513+ #else
509514 return puerts::DataTransfer::GetPointerFast<void >((*info).Holder ());
515+ #endif
510516}
511517
512518const void * pesapi_get_native_holder_typeid (pesapi_callback_info pinfo)
513519{
514520 auto info = reinterpret_cast <const v8::FunctionCallbackInfo<v8::Value>*>(pinfo);
521+ #if V8_MAJOR_VERSION >= 13 && V8_MINOR_VERSION >= 6
522+ return puerts::DataTransfer::GetPointerFast<void >((*info).This (), 1 );
523+ #else
515524 return puerts::DataTransfer::GetPointerFast<void >((*info).Holder (), 1 );
525+ #endif
516526}
517527
518528void * pesapi_get_userdata (pesapi_callback_info pinfo)
You can’t perform that action at this time.
0 commit comments