Report unimplemented script methods rather than returning nil

This commit is contained in:
Wolfgang Lux 2019-03-25 10:54:17 +01:00
parent f3ce2b7f32
commit 09841d976e
2 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2019-03-25 Wolfgang Lux <wolfgang.lux@gmail.com>
* STSmalltalkScriptObject.m (forwardInvocation:):
Call super class implementation for unimplemented methods so that they
get reported as unimplemented rather than silently returning nil.
2019-02-22 Wolfgang Lux <wolfgang.lux@gmail.com> 2019-02-22 Wolfgang Lux <wolfgang.lux@gmail.com>
* GNUmakefile: * GNUmakefile:

View file

@ -170,6 +170,12 @@
} }
method = [script methodWithName:methodName]; method = [script methodWithName:methodName];
if (method == nil)
{
[pool release];
[super forwardInvocation:invocation];
return;
}
count = [[invocation methodSignature] numberOfArguments]; count = [[invocation methodSignature] numberOfArguments];