diff --git a/vlib/v/util/util.v b/vlib/v/util/util.v index ec4d19fadb..1674445c6f 100644 --- a/vlib/v/util/util.v +++ b/vlib/v/util/util.v @@ -36,8 +36,10 @@ const ( ] ) +const builtin_module_names = ['builtin', 'strconv', 'strings', 'dlmalloc'] + pub fn module_is_builtin(mod string) bool { - return mod in util.builtin_module_parts + return mod in util.builtin_module_names } pub fn tabs(n int) string {