Index: runtime/vm/resolver.cc |
diff --git a/runtime/vm/resolver.cc b/runtime/vm/resolver.cc |
index 0eb295bca3a808bcc7f064b548dd163af7c87e51..d9fe8472e436ca05bc2cf5df71131ddd880da977 100644 |
--- a/runtime/vm/resolver.cc |
+++ b/runtime/vm/resolver.cc |
@@ -116,6 +116,10 @@ RawFunction* Resolver::ResolveDynamicAnyArgs( |
field_name ^= Field::NameFromGetter(function_name); |
if (field_name.CharAt(0) == '#') { |
+ if (!FLAG_lazy_dispatchers) { |
+ return Function::null(); |
+ } |
+ |
// Resolving a getter "get:#..." is a request to closurize an instance |
// property of the receiver object. It can be of the form: |
// - get:#id, which closurizes a method or getter id |