This commit is contained in:
rogerl%netscape.com 2000-09-06 02:16:51 +00:00
Родитель 8c105459ae
Коммит 7383f26d6a
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -1670,7 +1670,8 @@ ICodeModule *ICodeGenerator::genFunction(FunctionStmtNode *f, bool isConstructor
const StringAtom &initName = mWorld->identifiers["__init__"]; // XXXXXXX
icg.call(icg.getStatic(mClass, initName), thisValue, &args); // ok, so it's mis-named
}
icg.genStmt(f->function.body);
if (f->function.body)
icg.genStmt(f->function.body);
if (isConstructor) {
TypedRegister thisValue = TypedRegister(0, mClass);
icg.returnStmt(thisValue);

Просмотреть файл

@ -1670,7 +1670,8 @@ ICodeModule *ICodeGenerator::genFunction(FunctionStmtNode *f, bool isConstructor
const StringAtom &initName = mWorld->identifiers["__init__"]; // XXXXXXX
icg.call(icg.getStatic(mClass, initName), thisValue, &args); // ok, so it's mis-named
}
icg.genStmt(f->function.body);
if (f->function.body)
icg.genStmt(f->function.body);
if (isConstructor) {
TypedRegister thisValue = TypedRegister(0, mClass);
icg.returnStmt(thisValue);