From 60034987b12b3cb5200c2cfdf6616f3cf4b60591 Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Mon, 18 Mar 2019 18:47:01 -0400 Subject: [PATCH] fixup: impl remove try/catch --- src/module_wrap.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 263a63f75b..0a718856a3 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -903,17 +903,13 @@ void ModuleWrap::Resolve(const FunctionCallbackInfo& args) { env, "second argument is not a URL string"); } - TryCatchScope try_catch(env); Maybe result = node::loader::Resolve(env, specifier_std, url); if (result.IsNothing()) { - CHECK(try_catch.HasCaught()); - try_catch.ReThrow(); return; } - CHECK(!try_catch.HasCaught()); URL resolution = result.FromJust(); CHECK(!(resolution.flags() & URL_FLAGS_FAILED));