Skip to content

Commit a60d71e

Browse files
committed
KnowHOW's find_method should not throw to indicate method not found (kshannon++).
1 parent a3bb381 commit a60d71e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/6model/knowhow_bootstrapper.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,7 @@ static PMC * wrap_c(PARROT_INTERP, void *func) {
163163
/* This is the find_method where things eventually bottom out. */
164164
static PMC * bottom_find_method(PARROT_INTERP, PMC *obj, STRING *name, INTVAL hint) {
165165
PMC *methods = ((KnowHOWREPRInstance *)PMC_data(obj))->body.methods;
166-
PMC *method = VTABLE_get_pmc_keyed_str(interp, methods, name);
167-
if (PMC_IS_NULL(method))
168-
/* XXX Awesomeize. */
169-
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
170-
"Could not find method '%Ss'", name);
171-
return method;
166+
return VTABLE_get_pmc_keyed_str(interp, methods, name);
172167
}
173168

174169
/* Bootstraps the KnowHOW. This is were things "bottom out" in the meta-model

0 commit comments

Comments
 (0)