Skip to content

Commit 63b3a23

Browse files
jazellyaddaleax
andauthored
Update src/node_messaging.cc
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 96f824c commit 63b3a23

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/node_messaging.cc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,13 +445,7 @@ Maybe<bool> IsDOMException(Isolate* isolate,
445445

446446
Local<Function> dom_exception_ctor = dom_exception_ctor_val.As<Function>();
447447

448-
Maybe<bool> result = obj->InstanceOf(context, dom_exception_ctor);
449-
450-
if (result.IsNothing()) {
451-
return Nothing<bool>();
452-
}
453-
454-
return Just(result.FromJust());
448+
return obj->InstanceOf(context, dom_exception_ctor);
455449
}
456450

457451
// This tells V8 how to serialize objects that it does not understand

0 commit comments

Comments
 (0)