File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,17 @@ RawFunction* Resolver::ResolveDynamicAnyArgs(Zone* zone,
119119 if (FLAG_lazy_dispatchers) {
120120 if (is_getter && function.IsNull ()) {
121121 function = cls.LookupDynamicFunction (demangled);
122- if (!function.IsNull () && allow_add) {
123- // We were looking for the getter but found a method with the same
124- // name. Create a method extractor and return it.
125- // The extractor does not exist yet, so using GetMethodExtractor is
126- // not necessary here.
127- function = function.CreateMethodExtractor (function_name);
128- return function.raw ();
122+ if (!function.IsNull ()) {
123+ if (allow_add) {
124+ // We were looking for the getter but found a method with the same
125+ // name. Create a method extractor and return it.
126+ // The extractor does not exist yet, so using GetMethodExtractor is
127+ // not necessary here.
128+ function = function.CreateMethodExtractor (function_name);
129+ return function.raw ();
130+ } else {
131+ return Function::null ();
132+ }
129133 }
130134 }
131135 }
You can’t perform that action at this time.
0 commit comments