From fd25fb7399d22130b40a936f29a37b1af688d358 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Thu, 9 Nov 2023 03:19:08 +0800 Subject: [PATCH] tnode.h: backport fix for is_convertible --- src/codegen/tnode.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/codegen/tnode.h b/src/codegen/tnode.h index ecf9afab482..90592c98475 100644 --- a/v8/src/codegen/tnode.h +++ b/v8/src/codegen/tnode.h @@ -252,8 +252,9 @@ class int31_t { template struct is_subtype { static const bool value = - std::is_base_of::value || (std::is_same::value && - std::is_convertible::value); + std::disjunction, + std::conjunction, + std::is_convertible>>::value; }; template struct is_subtype, U> {