diff --git a/src/node_native_module.cc b/src/node_native_module.cc index a5aa1edaf91143..c4fd96c75c1862 100644 --- a/src/node_native_module.cc +++ b/src/node_native_module.cc @@ -224,7 +224,10 @@ MaybeLocal NativeModuleLoader::LoadBuiltinModuleSource(Isolate* isolate, isolate, contents.c_str(), v8::NewStringType::kNormal, contents.length()); #else const auto source_it = source_.find(id); - CHECK_NE(source_it, source_.end()); + if (UNLIKELY(source_it == source_.end())) { + fprintf(stderr, "Cannot find native builtin: \"%s\".\n", id); + ABORT(); + } return source_it->second.ToStringChecked(isolate); #endif // NODE_BUILTIN_MODULES_PATH }