@@ -41,12 +41,12 @@ concept ValueLessParameter =
4141// This is just a trivial pass-through.
4242class V8HandleWrapper {
4343 public:
44- template <typename T, typename = kj::EnableIf<kj::canConvert<T, v8::Value>()> >
44+ template <V8Value T >
4545 static constexpr const std::type_info& getName (v8::Local<T>*) {
4646 return typeid (T);
4747 }
4848
49- template <typename T, typename = kj::EnableIf<kj::canConvert<T, v8::Value>()> >
49+ template <V8Value T >
5050 v8::Local<T> wrap (jsg::Lock& js,
5151 v8::Local<v8::Context> context,
5252 kj::Maybe<v8::Local<v8::Object>> creator,
@@ -111,12 +111,12 @@ class V8HandleWrapper {
111111#undef JSG_DEFINE_TRY_UNWRAP
112112#undef JSG_FOR_EACH_V8_VALUE_SUBCLASS
113113
114- template <typename T, typename = kj::EnableIf<kj::canConvert<T, v8::Value>()> >
114+ template <V8Value T >
115115 static constexpr const std::type_info& getName (v8::Global<T>*) {
116116 return typeid (T);
117117 }
118118
119- template <typename T, typename = kj::EnableIf<kj::canConvert<T, v8::Value>()> >
119+ template <V8Value T >
120120 v8::Local<T> wrap (jsg::Lock& js,
121121 v8::Local<v8::Context> context,
122122 kj::Maybe<v8::Local<v8::Object>> creator,
@@ -132,12 +132,12 @@ class V8HandleWrapper {
132132 return v8::Global<v8::Value>(js.v8Isolate , handle);
133133 }
134134
135- template <typename T, typename = kj::EnableIf<kj::canConvert<T, v8::Value>()> >
135+ template <V8Value T >
136136 static constexpr const std::type_info& getName (V8Ref<T>*) {
137137 return typeid (T);
138138 }
139139
140- template <typename T, typename = kj::EnableIf<kj::canConvert<T, v8::Value>()> >
140+ template <V8Value T >
141141 v8::Local<T> wrap (jsg::Lock& js,
142142 v8::Local<v8::Context> context,
143143 kj::Maybe<v8::Local<v8::Object>> creator,
0 commit comments