We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bff40d commit 15fa8e0Copy full SHA for 15fa8e0
nan_maybe_43_inl.h
@@ -207,8 +207,7 @@ inline Maybe<bool> SetPrototype(
207
, v8::Local<v8::Value> prototype) {
208
v8::Isolate *isolate = v8::Isolate::GetCurrent();
209
v8::HandleScope scope(isolate);
210
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 14 || \
211
- (V8_MAJOR_VERSION == 14 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 0))
+#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION >= 14)
212
return obj->SetPrototypeV2(isolate->GetCurrentContext(), prototype);
213
#else
214
return obj->SetPrototype(isolate->GetCurrentContext(), prototype);
0 commit comments