| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 83f5cc0 commit 985ec48
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -222,7 +222,10 @@ MaybeLocal<String> NativeModuleLoader::LoadBuiltinModuleSource(Isolate* isolate, | |||
| 222 | 222 | isolate, contents.c_str(), v8::NewStringType::kNormal, contents.length()); | |
| 223 | 223 | #else | |
| 224 | 224 | const auto source_it = source_.find(id); | |
| 225 | - CHECK_NE(source_it, source_.end()); | ||
| 225 | + if (UNLIKELY(source_it == source_.end())) { | ||
| 226 | + fprintf(stderr, "Cannot find native builtin: \"%s\".\n", id); | ||
| 227 | + ABORT(); | ||
| 228 | + } | ||
| 226 | 229 | return source_it->second.ToStringChecked(isolate); | |
| 227 | 230 | #endif // NODE_BUILTIN_MODULES_PATH | |
| 228 | 231 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments